• 命令:

改变文件【owner权限】【group权限】【others权限】均可读可写可执行:

chmod 777 temp.txt

  • 格式:
    chmod 权限数字 文件名
    Linux 文件权限
    总共有4部分,如上图
    第1部分:文件类型,d:文件夹,- : 文件
    第2部分:owner权限,rwx
    第3部分:group权限,rwx
    第4部分:others权限,rwx
  • 权限数字:
    rwx: 4+2+1
    r–: 4+0+0
    rw-: 4+2+0
    r-x: 4+0+1
    -wx: 0+2+1
    —: 0+0+0

Linux档案的基本权限就有九个,分别是owner/group/others三种身份各有自己的read/write/execute权限。

相关文章:

  • 2022-01-19
  • 2021-10-08
  • 2021-09-14
  • 2021-12-04
猜你喜欢
  • 2021-11-23
  • 2022-01-08
  • 2021-12-15
相关资源
相似解决方案