Make a script executable #
Let’s say you have a simple script, simple_script.sh
and you want to make it executable.
To do so, run:
chmod +x simple_script.sh
Then to actually execute it, invoke:
./simple_script.sh
Alternatively, the script can still be executed without necessarily making it executable with a more explicit command:
bash simple_script.sh