Latest

6/recent/ticker-posts

How to create a .sh file in linux?

 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

                

STEP 2:

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







STEP 6:

Now make the .sh file executable : chmod +x tutorial.sh
Execute the file :  ./tutorial.sh



















Post a Comment

0 Comments