chmod 和 chattr 有什么区别?

Sha*_*yan 7 chmod

Solaris 操作系统没有chattr,而是使用chmod。也在 Windows 上。因为当您更改文件的属性时,您正在更改您或其他用户可以使用该文件执行的操作,因此chmod.

那么我们真的需要吗chattr?与 有何不同chmod

小智 6

    \n
  • chmod指用户、组和其他人的文件权限:

    \n

    读取
    \n写入
    \n执行

    \n
  • \n
  • chattr指的是无论用户还是组的属性,一些属性是:

    \n

    a\xe2\x86\x92 仅附加
    \n i\xe2\x86\x92 不可变
    \nc \xe2\x86\x92 在内核中自动压缩的文件

    \n

    看看维基百科chattr.

    \n
  • \n
\n