mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 04:57:46 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/rm
12
tldr/rm
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user