rm
From Mac Guides
Revision as of 19:50, 10 June 2008; Eraserhead (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
rm is a Terminal command used to delete files or folders.
[edit]
Examples
To delete a file called "Test.txt" in your home folder:
rm ~/Test.txt
To delete a folder called "Test" in your home folder:
rm -r ~/Test/
[edit]
Man Page Excerpt
The rm utility attempts to remove the non-directory type files specified on the command line. If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted (on the standard error output) for confirmation.

