MLUG: Re: [MLUG] Re: minor annoyance with '..' files
Re: [MLUG] Re: minor annoyance with '..' files
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
When in doubt use find. Since it allows you to do more complex checks
against files you can avoid a lot of these problems.

And yeh I try to always avoid doing anything dangerous until I've done a
test first. :)

*^*^*^*
Michael McGlothlin <EMAIL:PROTECTED>
http://www.kavlon.com

'The rule is, jam to-morrow and jam yesterday, but never jam today.'
Lewis Carroll

On Wed, 2 May 2001, Mike Miller wrote:

> On Tue, 1 May 2001, Mark Pecaut wrote:
> 
> > Which reminds me of some sysadmin horror stories I read once:
> > http://www2.hunter.com/~skh/humor/admin-horror.html
> 
> The one below is highly relevant!  It's exactly the kind of disaster I was
> trying to avoid while deleting files that begin with '..'.
> 
> Mike
> 
> --------------------------------------------------------------------------
> 
> From: EMAIL:PROTECTED (Barrie Spence)
> Organization: DataCAD Ltd, Hamilton, Scotland
> 
> My mistake on SunOS (with OpenWindows) was to try and clean up all the
> '.*' directories in /tmp. Obviously "rm -rf /tmp/*" missed these, so I was
> very careful and made sure I was in /tmp and then executed
> 
> "rm -rf ./.*". I will never do this again. If I am in any doubt as to how
> a wildcard will expand I will echo it first.
> 
> --
> To manage your subscription, go to http://mlug.missouri.edu/members/edit.php
> 
> Archives are available at http://mlug.missouri.edu/list-archives/
> 

--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/