linux file attribute permission change

linux file attribute permission change

chgrp: change file group

chgrp [-R] 属组名 文件名

chown: change the owner of the file, or change the group of the file at the same time

chown [–R] 属主名 文件名
chown [-R] 属主名:属组名 文件名

chmod: change 9 attributes of a file

Click here for details of 9 attributes

chmod [-R] xyz 文件或目录

r:4      w:2         x:1

可读可写可执行     rwx      7
可读可写不可执行   rw-      6

【chmod 777 文件 】赋予所有用户可读可写可执行

Guess you like

Origin blog.csdn.net/weixin_44635198/article/details/113181756