# ##Day 9 Task: How shell scripting works
In Linux is explained below

## Shell Scripting

Shell scripting is like writing a bunch of these instructions together in a special text file. This file is called a "script." When you run the script, your computer reads the instructions one by one and does what they say.

Shell scripting is like creating a set of simple instructions, like a recipe, for your computer to follow automatically. It's a way to make your computer do tasks for you without needing to click buttons or type commands all the time.

The first line, **<mark>#!/bin/bash</mark>**, is like telling the computer which language we're going to use for the instructions. In this case, we're using the "bash" language. "Bash" is like a translator between you (the person writing the script) and your computer. It helps the computer understand what you want it to do.

To make it simple, imagine that you're talking to someone who only understands one specific language, and you need a translator to communicate with them. In the first line of the script, **<mark>#!/bin/bash</mark>**, is like introducing the translator and saying, "Hey computer, I'll be talking to you using the 'bash' language, so please understand my instructions in this way."

* ### The line `#!/bin/bash` is commonly known as the "**<mark>shebang</mark>**"
    
* ### Write down your greeting instruction, like this: `echo "Hello, welcome to my home!"`. The `echo` command is used to print whatever is written.
    

### shell scripting, a <mark>date</mark> function is like a helpful tool that tells your computer about the current date and time. It's like having a virtual calendar and clock that you can ask questions about the date or use to perform tasks based on time.

## let's take an example

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690372943060/1bb76ea0-1f89-423b-b5a1-bb4bfd236ec3.png align="center")

## Output:-

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690372985379/32251148-ccfc-45b4-8428-d6143f5a3d7d.png align="center")

**Give read, write and execute permission to the user.**

<mark>chmod 700 phir_hera_feri_dilog.sh</mark>
