| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| File | User Permissions | Group Permissions | Other Permissions | ||||||
| Type | Read | Write | Execute | Read | Write | Execute | Read | Write | Execute |
| d | r | w | e | r | w | e | r | w | e |
chmod : change file permissions ,
eg, chmod 751 myfile,gives user full access, group read and execute permission, and others execute permission.
chown : change owner.
eg, chown wz file1, change the owner of file1 to the user wz.
chgrp : change group
eg, chgrp wz file1, change the file1 to belong to the group wz.
本文介绍了如何使用chmod、chown和chgrp命令来更改文件权限、所有者和所属组。通过实例说明了这些命令的具体用法,例如设置用户完全访问权限、组读写执行权限及其他人执行权限等。
1522

被折叠的 条评论
为什么被折叠?



