Register | Login

In order to run a shell script we need to use the following command.

$ sh

sh will point the shell and execute the script called

Another method is to execute by changing the permission of the shell script

chmod 755


Note: In this method it is mandatory that you need to use she-bang code in the top of your script. Add the below line to the top of your script.


Who Voted for this Article, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.