STEPS TO CREATE A .SH FILE IN LINUX:
Sorry for the poor quality of the images, we will update it very soon :)
STEP 1: Open a folder using cd command : cd ~/Desktop/
Use vi command to create a .sh file : vi tutorial.sh
The screen will look like this:
Type i
STEP 3:
Now, You can write whatever You want to write inside .sh file
STEP 4:
Press Esc key
STEP 5:
Enter :wq
After entering, it will look like this
Now make the .sh file executable : chmod +x tutorial.sh
Execute the file : ./tutorial.sh
0 Comments