rmdir when directory is not empty

Mogens Kjaer mk at crc.dk
Tue Dec 20 18:24:41 UTC 2005


Chasecreek Systemhouse wrote:
>>OR rm -fr /dir/dir-delete-me
> 
> 
> That won't work on directories that have tens of thousands of files.

Why not?

As long as you don't do a:

rm -f /dir/folder-with-many-files/*

that, of course won't work, but

rm -rf /dir/folder-with-many-files

should work.

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk




More information about the fedora-list mailing list