User Tools

Site Tools


make_a_file_executable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
make_a_file_executable [2016/07/25 18:56] walkeradminmake_a_file_executable [2017/01/29 17:58] walkeradmin
Line 1: Line 1:
 ====== Make a file Executable ====== ====== Make a file Executable ======
 +<color darkorange>2016</color>
 +
 +----
 +
 \\  \\ 
 Unlike Windows, Linux does not have files that are executable, all files can have this attribute. So for example, I have a python file that is just a text file, and I will to be able to run this from the command line, If I look at the file using ls -al: Unlike Windows, Linux does not have files that are executable, all files can have this attribute. So for example, I have a python file that is just a text file, and I will to be able to run this from the command line, If I look at the file using ls -al:
Line 16: Line 20:
 \\  \\ 
     User -rw  |  Group -r-  |  Others r--     User -rw  |  Group -r-  |  Others r--
-\\ +    
     where r is read - w is write - x is execute     where r is read - w is write - x is execute
 \\  \\ 
Line 31: Line 35:
 \\  \\ 
     "-rwxrwxrwx"     "-rwxrwxrwx"
-\\  
 \\  \\ 
 Now we can execute this file (assuming it contains something valid that is executable) Now we can execute this file (assuming it contains something valid that is executable)
make_a_file_executable.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1