Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-07 00:23:48 +00:00
parent 10dbf8b0c0
commit 22bb163ffa
20 changed files with 143 additions and 49 deletions

View File

@@ -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}}`