Removing empty directories with rmdir

linux-penguinGetting to grips with the command line in Linux will mean that you'll always be able to manage practically any Linux distribution (and there are literally hundreds) without having to learn a new interface.  Command line instructions are often quicker to implement as well.


Example uses

To remove a directory (as long as it's empty!)

$ rmdir directory

 

To remove a directory that's not empty use rm.

 

Thanks for visiting.