b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

HOWTO: Remove Directories in GNU/Linux

by Jon on April 19th, 2006

There are two options at your disposal to remove directories depending on whether you want to remove a single directory or an entire tree: rm -d or rmdir -p.

rm -d foo will remove the foo directory even if it is not empty. However, you must be root to use this command.

rmdir -p foo will remove the foo directory and ALL it’s subdirectories whether empty or not. You do not have to be root to do this, but you must own all the files and directories that will be effected.

POSTED IN: How To

8 opinions for HOWTO: Remove Directories in GNU/Linux

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing