Novell Home

How can I delete a directory?

Novell Cool Solutions: Question & Answer

Rate This Page

Reader Rating  stars  from 2 ratings

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

Reader Comments

  • That's one I struggled with for MONTHS before figuring it out.

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.