OSETC TECH

Linux: Run Shell Script

This post will guide you how to run .sh shell script under your Linux operating system. How do I run shell script in Linux.

Run Shell Script


If you want to run a shell script on Linux system. and you must set execute permission for you shell script. and you need to execute the chmod command to add execute permission to your script. then just use bash or sh program to run your script. just do the following steps:

#1 adding execute permission for shell script, type:

#chmod u+x fio.sh

#2 run your shell script, type:

#sh fio.sh

or

#bash fio.sh

or

./fio.sh