To remove a directory use the command:
rmdir directory_name
The directory must be empty before you can delete it. You will need to remove any files and subdirectories that it contains.
To remove a directory that contains files use the command:
rm -r directory_name
This deletes all the contents of the directory including any subdirectories.
![[Home]](../Images/weetop.gif) 
![[Search]](../Images/weesearch.gif) 
![[Index]](../Images/weeindex.gif) This site maintained by
staff@stacken.kth.se
 This site maintained by
staff@stacken.kth.se