Hi,

That IS a good solution Civileme;  however, most of the time when I am
going to delete a full directory, I do the following:

ls /dir
and if it IS in fact what I want to delete, I then type
rm -Rf ESC+_
(that is escape and underscore, to insert that last argument from the last
command)
which prevents ANY possible typo/cat-from-hell incident.

David Charles

On Sun, 16 Sep 2001, civileme wrote:

> On Sunday 16 September 2001 14:56, Felix Miata wrote:
> > [EMAIL PROTECTED] wrote:
> > > I know it saves a keystroke, and that is PRECISELY the reason I use -R
> > > instead of -r;  as I explained in my posting, using "rm -Rf /dir" is NOT
> > > something to be taken lightly, and that is why I got into the habit of
> > > -R, so that I HAD to do one extra keystroke, and therefore have one more
> > > chance to think of what I am doing and change my mind.
> >
> > Anyone interested in saving keystrokes can save a whole lot more by
> > typing these first thing upon login:
> >
> >     mc
> >
> > Once you do that, you find the dir you think you want to remove and hit
> > enter. Now you can see whether what's in there is what you really do
> > want to rm. Hit enter again, then F8, confirm, and it's gone.
>
>
> Heeheehee
>
> Yep
> decide you are going to type
>
> rm -rf /.somercd/messages/
>
> and you get this far
>
> rm -rf /
>
> and the housecat leaps onto the desk and tromps on the 'enter'
> key.
>
> Could it be that briefly through your mind flashes a change in the dinner
> menu before you begin reiterating every crime the cat ever committed and
> exploring all the unlikely ancestries the cat may have had?  Probably.
>
> Well I don't like the extra keystroke myself so,
>
> rm -r /.somercd/messages/ -f
>
> is my approach.
>
> Civileme
>
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to