Linux run shell script from terminal window

I don’t use shell scripts too often and had a brain dead moment on how to execute a shell script.

So, for the dummies :-), here’s a summary so next time I forget I can quickly look at my posts:

For Creating Shell programs
# vi filename.sh (vi is one of many text editors for linux systems)

For Running Shell Programs
# sh filename.sh
or
# chmod 744 filename.sh (you need to change the permission so you, the owner, can execute the script)
#./filename.sh

Tags: , ,
Previous Post

Joomla reorder ‘item is checked out’

Next Post

Stop auto network printer install XP

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.