mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 18:32:41 +03:00
c424e4969b
* 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
24 lines
542 B
Markdown
24 lines
542 B
Markdown
# rm
|
|
|
|
> Remove files or directories.
|
|
|
|
- Remove files from arbitrary locations:
|
|
|
|
`rm {{path/to/file}} {{path/to/another/file}}`
|
|
|
|
- Recursively remove a directory and all its subdirectories:
|
|
|
|
`rm -r {{path/to/folder}}`
|
|
|
|
- Forcibly remove a directory, without prompting for confirmation or showing error messages:
|
|
|
|
`rm -rf {{path/to/folder}}`
|
|
|
|
- Interactively remove multiple files, with a prompt before every removal:
|
|
|
|
`rm -i {{file(s)}}`
|
|
|
|
- Remove files in verbose mode, printing a message for each removed file:
|
|
|
|
`rm -v {{path/to/folder/*}}`
|