As an Amazon Associate I earn from qualifying purchases @AMAZON
How to Make a Shell Script Executable
A shell script is just a text file.
It might or might not have a filename extension like “.sh” or “.bash”.
To make it executable at the command line, its file flags must be changed to allow execution:
# Make the script 'verifyVolumes.sh' executable diglloyd:MPG lloyd$ sudo chmod +x verifyVolumes.sh
Use this cautiously, do not apply willy-nilly, and only to trusted scripts.