mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 21:46:03 +02:00
chattr: add page
This commit is contained in:
parent
4fa8d38779
commit
10306395e5
1 changed files with 15 additions and 0 deletions
15
pages/linux/chattr.md
Normal file
15
pages/linux/chattr.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue