Deleting LARGE number of files

Ryan Golhar golharam at umdnj.edu
Tue Apr 27 18:02:26 UTC 2004


Just out of curiousity, why is it a problem to delete a large number of
files?  What is 'rm' doing?  This sort of sounds like a bug in rm


-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Mike Wooding
Sent: Tuesday, April 27, 2004 1:44 PM
To: General Red Hat Linux discussion list
Subject: Re: Deleting LARGE number of files



 You can remove the directory recursively,
 or be more precise with a combination of
 find and xargs.

 The basic tool is xargs. See the man page.

--- Chris <redhat-list at dotcomdesigners.com> wrote:
> Okay, newbie question - and I can't find the answer
> on
> Google...  :-|
> 
> How can you delete the contents of a directory that
> has a
> HUGE number of files?  By huge I mean when "rm -f *" complains with 
> "too many items" error message.  I don't care
> what's in there, I just want to wipe it all.

=====
He who laughs last thinks slowest.


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list