Novell Home

How can I delete a directory?

Novell Cool Solutions: Question & Answer

Posted: 21 Apr 2005

Q:
How can I delete a directory?

A:
You can delete a empty directory with "rmdir".

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

example:

rmdir /home/user

or

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. www.webwiseone.com

© 2014 Novell