mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-11 06:16:53 +03:00
411 B
411 B
chattr
Change attributes of files or directories. More information: https://manned.org/chattr.
- Make a file or directory immutable to changes and deletion, even by superuser:
chattr +i {{path/to/file_or_directory}}
- Make a file or directory mutable:
chattr -i {{path/to/file_or_directory}}
- Recursively make an entire directory and contents immutable:
chattr -R +i {{path/to/directory}}