mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 10:00:41 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Make a file or directory [i]mmutable to changes and deletion, even by superuser:
|
||||
|
||||
`chattr +i {{path/to/file_or_directory}}`
|
||||
`sudo chattr +i {{path/to/file_or_directory}}`
|
||||
|
||||
- Make a file or directory mutable:
|
||||
|
||||
`chattr -i {{path/to/file_or_directory}}`
|
||||
`sudo chattr -i {{path/to/file_or_directory}}`
|
||||
|
||||
- [R]ecursively make an entire directory and contents immutable:
|
||||
|
||||
`chattr -R +i {{path/to/directory}}`
|
||||
`sudo chattr -R +i {{path/to/directory}}`
|
||||
|
||||
- Mark a directory and its files to be interpreted in a case-insensitive manner (case-[F]olding):
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set a file to only allow [a]ppending:
|
||||
|
||||
`chattr +a {{path/to/file}}`
|
||||
`sudo chattr +a {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user