Run Bash Script using bash. In order to run a Bash script on your system, you have to use the “bash” command and specify the script name that you want to execute, with optional arguments. $ bash <script>. Alternatively, you can use “sh” if your distribution has the sh utility installed. As an example, let’s say that you want to run a ...How to write Linux script?
How to Write Shell Script in Linux/Unix. Shell Scripts are written using text editors. On your Linux system, open a text editor program, open a new file to begin typing a shell script or shell programming, then give the shell permission to execute your shell script and put your script at the location from where the shell can find it.