First Shell Script

let's create the first script with the first.sh name.

echo "Hello World"
echo "this is our first shellscript."
pwd 
date


change the file permission using the below command.

┌──(gaurav㉿learning-ocean)-[~/shellscript-youtube]
└─$ chmod +x first.sh


let's run the script using the below command and see the output.

┌──(gaurav㉿learning-ocean)-[~/shellscript-youtube]
└─$ ./first.sh 
Hello World
this is our first shellscript.
/home/kali/shellscript-youtube
Wed May  4 06:36:07 AM EDT 2022