chmod +x fileName
bash fileName
#!/usr/bin/env bash
echo "Hello posterity!"
# file name should have the .sh extention
# remember to make your file executable by running: chmod +x script-name,sh
#Set file to execute mode
chmod +x fileName.sh
#Run script
sh fileName.sh