- Forums
- Linux Hosting
- Linux UNIX Shell Command To Make Creat File Executable
This Page Contains information about Linux UNIX Shell Command To Make Creat File Executable By unix in category Linux Hosting with 2 Replies. [391], Last Updated: Sat May 18, 2024
unix
Thu Aug 31, 2006
2 Comments
6833 Visits
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