Shell Scripting (BASH)

In the simplest terms, a shell script is a file containing a series of commands. The shell reads this file and carries out the commands as though they have been entered directly on the command line.


Here I am scripting a shutdown command .

# vim


sudo shutdown -h now


#now type ls you can see the file
#to run type sh 

Its similar to DOS batch file .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s