Remove a directory
From Attie's Wiki
(Difference between revisions)
(Created page with 'How do I remove a full directory in Linux? Question: How do I remove a full directory in Linux? Answer: To remove a directory that is full with other files and/or other direc…') |
|||
Line 1: | Line 1: | ||
− | + | To remove a directory that is not empty, use the command below: | |
− | + | <code> | |
+ | $ rm -rdf <directory> | ||
+ | </code> | ||
− | + | Note: In the above example, you would replace "<directory>" with the name of the directory you wish to delete. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | Note: In the above example, you would replace "directory" with the name of the | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 15:01, 12 May 2010
To remove a directory that is not empty, use the command below:
$ rm -rdf <directory>
Note: In the above example, you would replace "<directory>" with the name of the directory you wish to delete.