1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 22:17:57 +01:00
tldr/pages/common/rm.md
Marco Bonelli ac4094e0ad Refactor: improve consistency of the term "directory".
This commit changes the term "folder" to "directory" in every
instance where the first is used in an example description, but the
second is used in the example code, and vice versa.
2019-02-08 19:43:24 +00:00

551 B

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/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 {{file(s)}}

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

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