mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 21:55:41 +02:00

This commit adds the missing `_or_directory` to any example which is specifying an action affecting a file or a directory, but uses the token `{{path/to/file}}` instead of `{{path/to/file_or_directory}}`.
15 lines
344 B
Markdown
15 lines
344 B
Markdown
# chattr
|
|
|
|
> Change attributes of files or folders.
|
|
|
|
- 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 folder and contents immutable:
|
|
|
|
`chattr -R +i {{folder}}`
|