Three ways How to Run sh scripts in Linux


Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh).

Bash is intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2).

How to run sh Script from Command line

First you must type the chmod command to change file access permissions to executable:
Use cd /home/user/script_dir to move to your script file.

chmod +x

Then you run one of the following commands:





Share your love

Leave a Reply

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