mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
rm: various tweaks for clarity; add -v (#988)
* rm: various tweaks for clarity; add -v changed some descriptions and tokens to make the meaning of each command clearer, and facilitate memorization of the flags added the -v (verbose) option * use a more intuitive pattern for the -i option
This commit is contained in:
parent
8127104cce
commit
c424e4969b
1 changed files with 11 additions and 7 deletions
|
@ -4,16 +4,20 @@
|
|||
|
||||
- Remove files from arbitrary locations:
|
||||
|
||||
`rm {{/path/to/file}} {{/otherpath/to/file2}}`
|
||||
`rm {{path/to/file}} {{path/to/another/file}}`
|
||||
|
||||
- Remove recursively a directory and all its subdirectories:
|
||||
- Recursively remove a directory and all its subdirectories:
|
||||
|
||||
`rm -r {{/path/to/folder}}`
|
||||
`rm -r {{path/to/folder}}`
|
||||
|
||||
- Remove directory without prompt:
|
||||
- Forcibly remove a directory, without prompting for confirmation or showing error messages:
|
||||
|
||||
`rm -rf {{/path/to/folder}}`
|
||||
`rm -rf {{path/to/folder}}`
|
||||
|
||||
- Prompt before every removal:
|
||||
- Interactively remove multiple files, with a prompt before every removal:
|
||||
|
||||
`rm -i {{\*}}`
|
||||
`rm -i {{file(s)}}`
|
||||
|
||||
- Remove files in verbose mode, printing a message for each removed file:
|
||||
|
||||
`rm -v {{path/to/folder/*}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue