Re: deleting files
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 *
If you're new enough to linux to be asking this question, you definitely
don't want to be typing rm -rf * anywhere. Too easy to screw up if you
are uparrowing through your command history and accidentally hit return.
If you want to nuke a whole directory, you should use 'rm -rf
/path/to/directory' to eliminate chances of screwing up and nailing the
wrong directory.
jpb
--
Joe Block <jpb@creol.ucf.edu>
CREOL System Administrator
Social graces are the packet headers of everyday life.
Reply to: