__/ [ Chris F.A. Johnson ] on Sunday 26 February 2006 02:51 \__
> On 2006-02-26, ray wrote:
>> On Sat, 25 Feb 2006 16:23:43 -0800, Shabam wrote:
>>
>>> I'm trying to do a "rm -rf *" to a particular directory of files and
>>> subfolders (the mail spool folder due to spam). However it keeps telling
>>> me
>>> that the argument list is too long. Rather than deleting files slowly in
>>> chunks, how do I remove everything with just one command?
>>
>> another way would be:
>>
>> find . -exec rm {} \;
>
> That will be slow. Use '+' instead of '\;' (on POSIX-compliant
> find, including recent GNU versions), or:
>
> find . -print0 | xargs -0 rm
>
> Or, as I posted before:
>
> rm -rf ./
The brutal way:
mv <PATH>/<mail_spool_dir> /dev/null
mkdir <PATH>/<mail_spool_dir>
|
|