Remove a directory

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 2: Line 2:
  
 
<pre>
 
<pre>
$ rm -rdf <directory>
+
$ rm -rf <directory>
 
</pre>
 
</pre>
  
 
In the above example, you would replace "<directory>" with the name of the directory you wish to delete.
 
In the above example, you would replace "<directory>" with the name of the directory you wish to delete.
  
<code>-rdf</code> specifies <b>r</b>ecursive, remove <b>d</b>irectories and <b>f</b>orce
+
<code>-rf</code> specifies <b>r</b>ecursive and <b>f</b>orce

Latest revision as of 13:38, 16 October 2010

To remove a directory, use the command below:

$ rm -rf <directory>

In the above example, you would replace "<directory>" with the name of the directory you wish to delete.

-rf specifies recursive and force

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox