mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00

This commit fixes every instance in which the word "folder" is incorrectly used instead of "directory".
15 lines
362 B
Markdown
15 lines
362 B
Markdown
# chattr
|
|
|
|
> Change attributes of files or directories.
|
|
|
|
- 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}}`
|