mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 20:51:25 +00:00
Update cheatsheets
This commit is contained in:
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> 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:
|
||||
- Make a file or directory [i]mmutable to changes and deletion, even by superuser:
|
||||
|
||||
`chattr +i {{path/to/file_or_directory}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`chattr -i {{path/to/file_or_directory}}`
|
||||
|
||||
- Recursively make an entire directory and contents immutable:
|
||||
- [R]ecursively make an entire directory and contents immutable:
|
||||
|
||||
`chattr -R +i {{path/to/directory}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`chattr +F {{path/to/directory}}`
|
||||
|
||||
- Set a file to only allow appending:
|
||||
- Set a file to only allow [a]ppending:
|
||||
|
||||
`chattr +a {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user