1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/rm.md
pixel 263508cd44
*: replace file(s) syntax and add path/to/ to more things (#9592)
* Fix file(s) and more path/to

* Update pages.it/common/rm.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>

* thanks emily your suggestion was dogshit

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/common-arguments.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2022-12-06 16:47:56 +10:00

640 B

rm

Remove files or directories. More information: https://www.gnu.org/software/coreutils/rm.

  • 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/directory}}

  • Forcibly remove a directory, without prompting for confirmation or showing error messages:

rm -rf {{path/to/directory}}

  • Interactively remove multiple files, with a prompt before every removal:

rm -i {{path/to/file1 path/to/file2 ...}}

  • Remove files in verbose mode, printing a message for each removed file:

rm -v {{path/to/directory/*}}