52-chmod

文件有三种身份

  • owner:文件所有者
  • group:同用户组
  • others:其他非本用户组

身份又分别有三个权限

  • read
  • wirte
  • execute

文件的权限字符为:

-rwxrwxrwx

分别对应:owner\group\others
权限如下:

  • r:4
  • w:2
  • x:1

使用示例:

chmod -R 740 /usr/local/test/
posted @ 2022-04-11 10:22  认真的coder  阅读(24)  评论(0编辑  收藏  举报