Novell is now a part of Micro Focus

How can I delete a directory?

Novell Cool Solutions: Question & Answer

Posted: 21 Apr 2005

How can I delete a directory?

You can delete a empty directory with "rmdir".

If the directory isn't empty you can use "rm" with the option "-r".


rmdir /home/user


rm -r /home/user

*note* Windows usually asks you if you are sure before deleting things. Linux usually does not, so be careful.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Micro Focus