[PLUG] List Working?
Cooper Stevenson
cooper at linux-enterprise.net
Tue Jul 30 01:34:59 UTC 2002
I hardly ever use `rm' by itself as myself and *never* as root.
I usually perform the following:
find /the/directory/or/files/you/wish/to/delete -exec ok {} \;
In scripts, I always check first to see if the directory exists:
if [[ -d /full/path/to/directory ]]
then
find /full/path/to/directory -exec rm {} \;
fi
Of course, if you enjoy sleeping in your office, be my guest.
-Cooper
On Mon, 2002-07-29 at 16:43, Steve Bonds wrote:
> On Mon, 29 Jul 2002, Roderick A. Anderson raanders at acm.org XXXXXXXXXXXXXXXXXXX wrote:
>
> > On 29 Jul 2002, Karl M. Hegbloom wrote:
> >
> > > It was me, and I'm sorry about the list being down over the weekend.
> > > I was up too late working...
> >
> > I was always told you weren't considered a real sysadmin until you done a
> > rm -rf at root.
>
> My personal favorite is:
>
> rm -rf / home/user-you-meant-to-remove
>
> Whoops! Damn that sticky space bar! ;-)
>
> -- Steve
>
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
--
______________________________________________________
Cooper Stevenson |cooper at metasource.us
UNIX/Linux Consultant |PH: (541)791-1322
MetaSource Technologies |www.metasource.us
------------------------------------------------------
More information about the PLUG
mailing list