mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 03:50:31 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,20 +15,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove specific files ignoring nonexistent ones:
|
||||
|
||||
`rm --force {{path/to/file1 path/to/file2 ...}}`
|
||||
`rm {{[-f|--force]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Remove specific files interactively prompting before each removal:
|
||||
|
||||
`rm --interactive {{path/to/file1 path/to/file2 ...}}`
|
||||
`rm {{[-i|--interactive]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Remove specific files printing info about each removal:
|
||||
|
||||
`rm --verbose {{path/to/file1 path/to/file2 ...}}`
|
||||
`rm {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Remove specific files and directories recursively:
|
||||
|
||||
`rm --recursive {{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 --dir {{path/to/directory}}`
|
||||
`rm {{[-d|--dir]}} {{path/to/directory}}`
|
||||
|
||||
Reference in New Issue
Block a user