mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
16 lines
296 B
Markdown
16 lines
296 B
Markdown
|
# chattr
|
||
|
|
||
|
> Change attributes of files or folders.
|
||
|
|
||
|
- Make a file or folder immutable to changes and deletion, even by superuser:
|
||
|
|
||
|
`chattr +i {{path}}`
|
||
|
|
||
|
- Make a file or folder mutable:
|
||
|
|
||
|
`chattr -i {{path}}`
|
||
|
|
||
|
- Recursively make an entire folder and contents immutable:
|
||
|
|
||
|
`chattr -R +i {{folder}}`
|