Category:Lunix命令
Article From:https://www.cnblogs.com/bsfl-study/p/9064586.html

1.chmod:

chmod [who] [opt] [mode] File / directory name
who
u:Representing the owner of the file
g:Representing the same group of users
o:Representing other users
a:Representing all users
optIt is the representative operation, which can be as follows:
+:Add a certain permissions
-:Cancel a certain authority
=:Give given permissions and cancel the original permissions
And mode represents permissions:
r:readable
w:Writable
x:Executable

Increase read and write permissions for file a.txt for the same group of users: Chmod g+rw a.txt

The rule of digital setting is simpler: Chmod [mode] file name.

 rwx         rwx            rwx
The same group of users
   7              7             7
  111         111          111

 

Link of this Article: The use of the Lunix command (1)

Leave a Reply

Your email address will not be published. Required fields are marked *