Type the following command to make a file executable:

(in my example below, i will be making my file named: script_file executable)

To make my file script_file executable, the first step is to check what permission it has. Type this command to see the permissions:
CODE:
ls -l


Now change the permission to make it executable:
CODE:
chmod +x script_file


Check again to see the new permissions:
CODE:
ls -l


To run the file, enter this command:
CODE:
./script_file


DONE