pavement

Rm

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
(flags added)
Line 1: Line 1:
short for '''remove'''.
+
short for '''remove'''. Seriously, be careful when using this. There is no undelete once you've unlinked a file (unless you've aliased [[rm]] to a [[mv]] script that moves files to a trash folder or something -- not recommended because you will eventually find yourself on a system that doesn't have that alias and make a mistake.
 +
 
 +
==Common flags==
 +
 
 +
-r recursive -- same as -R
 +
-f force -- do it and damn the consequences
 +
-d directories
 +
-i confirm before delete
 +
-P overwrite files (with 0's, three times,) after deleting them
 +
-v be verbose
 +
 
 +
See also [[rmdir]]

Revision as of 17:16, 23 December 2004

short for remove. Seriously, be careful when using this. There is no undelete once you've unlinked a file (unless you've aliased rm to a mv script that moves files to a trash folder or something -- not recommended because you will eventually find yourself on a system that doesn't have that alias and make a mistake.

Common flags

-r recursive -- same as -R
-f force -- do it and damn the consequences
-d directories
-i confirm before delete
-P overwrite files (with 0's, three times,) after deleting them
-v be verbose

See also rmdir

Personal tools