[plug] /Newbie - Removing non empty directories

Matt Kemner zombie at wasp.net.au
Tue May 23 11:26:09 WST 2000


> Excuse the maybe unwarrented pause, but isn't -R a *bad* thing? Or will the
> directory_name limit it?

Yes.  -r (or -R which is the same thing) is the flag you want.
If you type "rm -rf <directory name>" it will delete that directory and
anything in contains.  The command is dangerous because it can be easy to
mistype and delete more than you expected, and there is no undelete in
Linux.
(but you do make regular backups, right? :)

If you're unsure, you can type "rm -i -r <dir>" and it will prompt you
before each file.

 - Matt




More information about the plug mailing list