Re: rmdir when directory is not empty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/20/05, Mogens Kjaer <mk@xxxxxx> wrote:

> > 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.


Have you tried it?  rm will fail because the shell cannot keep track
of that many;
the find cmd works because it deals with one file at a time.

--
WC -Sx- Jones | http://ccsh.us/ | Open Source Consulting


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux