basic bash/shell script tutorials example

Few Basic exmaple of Bash Script.

  • Executable Command: To Make the file executable, you need to run below command:

chmod +x filename.sh

and then run

sudo ./filename.sh

Few Examples are below

Few Bash Script books

The Linux Command Line by William Shotts

Advanced Bash Scripting Guide by Mendel Cooper

Bash Guide for Beginners (Machtelt Garrels)

Essential Bash (Krzysztof Kowalczyk) )