chattr
Change attributes of files or directories. See also:
lsattr. More information: https://manned.org/chattr.
- Make a file or directory [i]mmutable to changes and deletion, even by superuser:
sudo chattr +i
- Make a file or directory mutable:
sudo chattr -i
- [R]ecursively make an entire directory and contents immutable:
sudo chattr -R +i
- Mark a directory and its files to be interpreted in a case-insensitive manner (case-[F]olding):
chattr +F
- Set a file to only allow [a]ppending:
sudo chattr +a
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
