RE: [newbie] Real rm?

2001-02-23 Thread Meph Istopheles

  Frankie,

 yeah and if you accidenly slip when someone calls you, and your
 are su'd to root, and you put a little asterix in there,,
 things would get really interesting...

 I like having a last chance,,

  Naturally.  Accidents are bound to happen to everyone.  Maybe I
like living with a little risk, or something.  But I've only
accidently deleted one file in the past three or four years of
Linux I didn't mean to (but I had a backup of it, so it all
worked out in the end).

 just my opinion.. you can't be to safe,, thats why its unwise
 to be root unless you have too.

  Very true, but again:  I like living with a little risk;-).

  Meph

-- 
  "I did this 'cause Linux gives me a woody."
  -Dave '-ddt-' Taylor, announcing DOOM for Linux





Re: [newbie] Real rm?

2001-02-22 Thread Meph Istopheles

  Hey,

  When I give the command "rm annoyingfile" I expect
 annoyingfile to disappear -- not to be asked

 rm: remove 'annoyingfile'?

  What's the point of asking that?  I wouldn't have given
 the command rm if I didn't want to remove annoyingfile, would
 I?

  How do I change the function of rm to make it work the way
 I would like?

  This one bothered me too (read "drove me nuts") till I finally
looked in ~./.bashrc.  It appears MandrakeSoft chose to make an
alias for rm to rm='rm -i' which is for interactive.  I suppose
to gear toward the total 'puter newbie.

  You can either remove the alias or, as I'd done, switch it to
rm='rm -f' which is for force, ie, no questions asked.

  Meph

-- 
  "I did this 'cause Linux gives me a woody."
  -Dave '-ddt-' Taylor, announcing DOOM for Linux





RE: [newbie] Real rm?

2001-02-22 Thread Franki

yeah and if you accidenly slip when someone calls you, and your are su'd to
root, and you put a little asterix in there,, things would get really
interesting...

I like having a last chance,,

just my opinion.. you can't be to safe,, thats why its unwise to be root
unless you have too.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Meph Istopheles
Sent: Thursday, 22 February 2001 10:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Real rm?


  Hey,

  When I give the command "rm annoyingfile" I expect
 annoyingfile to disappear -- not to be asked

 rm: remove 'annoyingfile'?

  What's the point of asking that?  I wouldn't have given
 the command rm if I didn't want to remove annoyingfile, would
 I?

  How do I change the function of rm to make it work the way
 I would like?

  This one bothered me too (read "drove me nuts") till I finally
looked in ~./.bashrc.  It appears MandrakeSoft chose to make an
alias for rm to rm='rm -i' which is for interactive.  I suppose
to gear toward the total 'puter newbie.

  You can either remove the alias or, as I'd done, switch it to
rm='rm -f' which is for force, ie, no questions asked.

  Meph

--
  "I did this 'cause Linux gives me a woody."
  -Dave '-ddt-' Taylor, announcing DOOM for Linux






Re: [newbie] Real rm?

2001-02-22 Thread Michael O'Henly

On Thursday 22 February 2001 11:46, DRX wrote:
  When I give the command "rm annoyingfile" I expect annoyingfile to
 disappear -- not to be asked

 rm: remove 'annoyingfile'?

  What's the point of asking that?  I wouldn't have given the command rm
 if I didn't want to remove annoyingfile, would I?

If you want to live dangerously, you can use "rm -f annoyingfile". Another 
command you should know is "man [commandname]". For example, "man rm" tells 
you all the options for the command, including "-f". 

Keep in mind that Linux doesn't provide any mechanism for undeleting data. 
The "are you sure" prompt is there to save you from yourself. 

  How do I change the function of rm to make it work the way I would
 like?

If you REALLY want to live dangerously, you can create an alias something 
like:

alias rmf = "rm -f"

Put this in your .bashrc file. Then use the command "rmf" instead of "rm" and 
it will do what you're asking.

M.

-- 
Michael O'Henly
TENZO Design




Re: [newbie] Real rm?

2001-02-22 Thread Tom Brinkman

On Thursday 22 February 2001 01:46 pm, DRX wrote:
  When I give the command "rm annoyingfile" I expect annoyingfile
 to disappear -- not to be asked
  How do I change the function of rm to make it work the way I
 would like?

   in your  /home/user/.bashrcyou'll see some lines like these
~~
# User specific aliases and functions
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias s='cd ..'
alias d='ls'
alias p='cd -'
~~
   The first one  "alias rm='rm -i'"  modifies the normal behavior of 
'rm' so that it asks you to confirm.  In the above, the same is true 
for 'mv' (move) and 'cp' (copy).  If you really want to change this 
(which I wouldn't suggest), put a pound sign '#' and a space in front 
of the statement.  eg,  # alias rm='rm -i'   and save the changes to 
the file. In the next terminal you start, 'rm' will no longer ask for a 
confirmation.  I'd also suggest you read the man pages for all the 
above aliases in .../.bashrc
-- 
Dale Earnhardt,  the greatest stock car driver ever.
  Tom Brinkman [EMAIL PROTECTED]   Galveston Bay




Re: [newbie] Real rm?

2001-02-22 Thread angry

try rm -f

DRX wrote:

  When I give the command "rm annoyingfile" I expect annoyingfile to
 disappear -- not to be asked

 rm: remove 'annoyingfile'?

  What's the point of asking that?  I wouldn't have given the command rm
 if I didn't want to remove annoyingfile, would I?

  How do I change the function of rm to make it work the way I would like?

   DRX

--

"The day Microsoft makes something that doesn't suck,
is probably the day Microsoft starts making vacuum cleaners."
- Ernst Jan Plugge






Re: [newbie] Real rm?

2001-02-22 Thread Digital Wokan

That's Mandrake's way of keeping new users from making grave errors. 
I've left it in place since I have made the mistake and the alias rm="rm
-i" saved my butt.
You can either remove it from /etc/bashrc or if you want to override it
on a per-use basis, type "\rm annoyingfile" (backslash overrides
aliases).

DRX wrote:
 
  When I give the command "rm annoyingfile" I expect annoyingfile to
 disappear -- not to be asked
 
 rm: remove 'annoyingfile'?
 
  What's the point of asking that?  I wouldn't have given the command rm
 if I didn't want to remove annoyingfile, would I?
 
  How do I change the function of rm to make it work the way I would like?
 
   DRX

-- 
Digital Wokan, Tribal Mage of the Electronics Age
Guerilla Linux Warrior