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

Re: deleting files



On Tue, 23 Nov 1999, Peter Ross wrote:

> On 23-Nov-1999, zdrysdal@diagnostic.co.nz <zdrysdal@diagnostic.co.nz> wrote:
> > Hi
> > 
> > does anyone happen to know of a quicker way of deleting 40000 files out of
> > a directory other than the command "find . -exec rm {} \;"
> > 
> > will rm -r <directory> be as quick?
> > 
> rm -rf *

That's something I *never* do.  Why?  Because it puts "rm -rf *" in my
history buffer which means that one slip can lead to disaster.  So I use
rm -rf /here/there/some/place/* which at least means I cannot blow away my
whole file system if I make an error.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen   <allen@cleo.murdoch.edu.au>  Perth, Western Australia
voice +61 8 9316 2486   32.0125S 115.8445E               Debian Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Reply to: