tldr/pages/common/rm.md

20 lines
332 B
Markdown
Raw Normal View History

# rm
> Remove files or directories.
- Remove files from arbitrary locations:
`rm {{/path/to/file}} {{/otherpath/to/file2}}`
2016-03-25 18:12:14 +00:00
- Remove recursively a directory and all its subdirectories:
`rm -r {{/path/to/folder}}`
2016-01-15 09:23:41 +00:00
- Remove directory without prompt:
2016-01-14 13:43:17 +00:00
`rm -rf {{/path/to/folder}}`
- Prompt before every removal:
`rm -i {{\*}}`