Thursday, 9 October 2008

Running .sh files in Linux

If you need to run a file with .sh extension in linux (Ubuntu, Fedora, OpenSuSe, RedHat...) you need to give it first execution rights.

Say, the file is filename.sh, so you type:
chmod 777 filename.sh

to then run the file from the local directory, you type:
./filename.sh

No comments: