Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-23 00:20:07 +00:00
parent a49466c200
commit cd59a77dc8
31 changed files with 239 additions and 130 deletions

12
tldr/rm
View File

@@ -15,16 +15,20 @@ source: https://github.com/tldr-pages/tldr.git
- Remove specific files ignoring nonexistent ones:
`rm -f {{path/to/file1 path/to/file2 ...}}`
`rm {{[-f|--force]}} {{path/to/file1 path/to/file2 ...}}`
- Remove specific files interactively prompting before each removal:
`rm -i {{path/to/file1 path/to/file2 ...}}`
`rm {{[-i|--interactive]}} {{path/to/file1 path/to/file2 ...}}`
- Remove specific files printing info about each removal:
`rm -v {{path/to/file1 path/to/file2 ...}}`
`rm {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
- Remove specific files and directories recursively:
`rm -r {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
`rm {{[-r|--recursive]}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Remove empty directories (this is considered the safe method):
`rm {{[-d|--dir]}} {{path/to/directory}}`