Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Deleting many files with rm
Date: 2000/08/04	[thread overview]
Message-ID: <8mf737$16t$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 8me4hu$8i3$1@pheidippides.axion.bt.co.uk


In article <8me4hu$8i3$1@pheidippides.axion.bt.co.uk>, Hin-Tak@pc7221.btlabs.bt.co.uk (hin-tak.leung@bt.com) writes:

>well, I am sure you can do:
>
>	find . -type f -exec rm {} \;
>

This is likely to take much longer than:

	find . -type f -print | xargs rm

because, the first one will have to start a new rm for each
file.  The 2nd one will use one rm for a whole bunch of 
files.  While UNIX forks are relatively cheap, they do take
time, I/O and page faults.

In the end, it will still be I/O bound though.
>

--
Alan Rollow				alan@nabeth.cxo.dec.com




  reply	other threads:[~2000-08-04  4:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-03  4:00 Deleting many files with rm andrew.rycroft
2000-08-03  4:00 ` Jeff Wilson
2000-08-03  4:00 ` Eckhardt Wallmeroth
2000-08-03  4:00   ` Tony Verhulst
2000-08-04  4:00   ` David Schmitt
2000-08-04  4:00 ` hin-tak.leung@bt.com
2000-08-04  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2000-08-06  4:00     ` Timo Felbinger
2000-08-06  4:00       ` John F Carr
2000-08-07  4:00         ` Timo Felbinger
2000-08-17  4:33 ` Josef Faulkner
2000-08-18  0:45   ` Richard M. Alderson III
2000-08-18  4:00     ` Tony Verhulst
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox