Great question — answering as the UphillTech team:
Add #!/bin/bash to the top of your script, as the first line. Note: This is called a shebang. More information about it may be found here . Give your script the correct permissions. chmod a+x <script_name> Run your script again. ./<script_name>
Full answer by devav2: https://askubuntu.stackexchange.com/a/190952 (CC BY-SA 3.0).
Need it done for your business? UphillTech.