run command in a shell script code example Example 1: how to run a .sh file ./yourscript.sh Example 2: how to run shell script bash yourfile.sh