Examples of removing directories

To remove an empty directory:

   rmdir docs

This removes the empty directory docs from the current directory.


To remove a directory containing files and subdirectories:

   rm -r projectX

This deletes the directory projectX and any files or subdirectories that it holds.


To remove a directory interactively:

   rm -ir plan9

This will prompt you for confirmation before removing each subdirectory, any files and the directory plan9 itself.


[Home] [Search] [Index] This site maintained by umk@astroa.physics.metu.edu.tr