Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* non-interactive deletes
@ 1998-12-06  0:18 Bob Segrest
  1998-12-06  0:21 ` Bibek Sahu
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bob Segrest @ 1998-12-06  0:18 UTC (permalink / raw)
  To: axp-list

Greetings,

I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
reason the 'rm' command seems t be built with the interactive '-i' switch
turned on.  In general I have found this an annoyance.  But when a whole
directory tree needs to be deleted, it is a real pain in the lower rectal
region.  Am I overlooking something simple here ???

Does anyone have a suitable 'rm' executable that doesn't pester you  when
told to delete something ???

Bob Segrest



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:18 Bob Segrest
@ 1998-12-06  0:21 ` Bibek Sahu
  1998-12-06 21:54   ` Will Zimmerman
  1998-12-06  0:44 ` Kevin.Brown
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Bibek Sahu @ 1998-12-06  0:21 UTC (permalink / raw)
  To: axp-list


	Redhat aliases 'rm' to 'rm -i' for root.  To view all aliases,
type 'alias' at the prompt.  To remove the alias for rm, type 'unalias
rm'.

	To get it to not ask you w/o removing the alias, use:

bash# rm -rf evil_directory/

- Bob

On Sat, 5 Dec 1998, Bob Segrest wrote:

> Greetings,
> 
> I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> reason the 'rm' command seems t be built with the interactive '-i' switch
> turned on.  In general I have found this an annoyance.  But when a whole
> directory tree needs to be deleted, it is a real pain in the lower rectal
> region.  Am I overlooking something simple here ???
> 
> Does anyone have a suitable 'rm' executable that doesn't pester you  when
> told to delete something ???
> 
> Bob Segrest
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:18 Bob Segrest
  1998-12-06  0:21 ` Bibek Sahu
@ 1998-12-06  0:44 ` Kevin.Brown
  1998-12-06  1:29   ` Mark Hansel
  1998-12-06  1:54 ` Larry Snyder
  1998-12-06  7:11 ` Michael Steele
  3 siblings, 1 reply; 10+ messages in thread
From: Kevin.Brown @ 1998-12-06  0:44 UTC (permalink / raw)
  To: axp-list

> I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> reason the 'rm' command seems t be built with the interactive '-i' switch
> turned on.  In general I have found this an annoyance.  But when a whole
> directory tree needs to be deleted, it is a real pain in the lower rectal
> region.  Am I overlooking something simple here ???
> 
> Does anyone have a suitable 'rm' executable that doesn't pester you  when
> told to delete something ???

I run RH5.0 and it only does that when I am logged in as root.  If I am any
other user, rm just removes, no questions asked.  So it may be in the profile
for root.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:44 ` Kevin.Brown
@ 1998-12-06  1:29   ` Mark Hansel
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Hansel @ 1998-12-06  1:29 UTC (permalink / raw)
  To: axp-list

When I got my first RH linux, after years of other versions, I had an
annoying runin with what I thought was a problem. I chased it down found
the alias.

After thinking about it (2 seconds) I recognized the value of the -i for
routine actions. Root has TOO much power to freely be rm-ing casually and
if root shoots herself in the foot, well, too bad.

As root, to get around the alias, In either use the
'rm -rf offending-directory' or, give the path to rm
/bin/rm -<options> <files/directories>. Either works and is worth the
effort.

After my confrontation with the RH alias, I created a "saferm" alias for
ordinary users and recommend its use.

On Sat, 5 Dec 1998 Kevin.Brown@asu.edu wrote:

> > I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> > reason the 'rm' command seems t be built with the interactive '-i' switch
> > turned on.  In general I have found this an annoyance.  But when a whole
> > directory tree needs to be deleted, it is a real pain in the lower rectal
> > region.  Am I overlooking something simple here ???
> > 
> > Does anyone have a suitable 'rm' executable that doesn't pester you  when
> > told to delete something ???
> 
> I run RH5.0 and it only does that when I am logged in as root.  If I am any
> other user, rm just removes, no questions asked.  So it may be in the profile
> for root.
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 

Mark Hansel (218-236-2039)
hansel@mhd1.moorhead.msus.edu



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
@ 1998-12-06  1:42 Jeff DeMaagd
  0 siblings, 0 replies; 10+ messages in thread
From: Jeff DeMaagd @ 1998-12-06  1:42 UTC (permalink / raw)
  To: axp-list

>> I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
>> reason the 'rm' command seems t be built with the interactive '-i'
switch
>> turned on.  In general I have found this an annoyance.  But when a whole
>> directory tree needs to be deleted, it is a real pain in the lower
rectal
>> region.  Am I overlooking something simple here ???
>>
>> Does anyone have a suitable 'rm' executable that doesn't pester you
when
>> told to delete something ???
>
>I run RH5.0 and it only does that when I am logged in as root.  If I am
any
>other user, rm just removes, no questions asked.  So it may be in the
profile
>for root.


I believe it is in /root/.bashrc, possibly (less likely in .profile)

I do not advise removing the supplied aliases.

The "problem" with unix like systems is that until you figure out
where/how/why/when of anything, you have no clue where to start.  If it is
a configuration problem, look in  the directory tree /etc, or the 'dot'
files '.anyfile'.  I like Linux, it is just too time consuming to get
everyting to work exactly the way I want it.  But, after a while you either
get used to it and/or find the configuration options that you want.  If you
like your configuration, back it up 1) to a different partition, 2) to a
floppy, 3) to a CD-R or tape backup.

JRDM


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:18 Bob Segrest
  1998-12-06  0:21 ` Bibek Sahu
  1998-12-06  0:44 ` Kevin.Brown
@ 1998-12-06  1:54 ` Larry Snyder
  1998-12-06  7:11 ` Michael Steele
  3 siblings, 0 replies; 10+ messages in thread
From: Larry Snyder @ 1998-12-06  1:54 UTC (permalink / raw)
  To: axp-list

Hi Bob --
Having read the responses, I tend to agree that protecting root from
itself is not a bad thing.  However, if you REALLY feel the need, the
alias is set in /root/.bashrc, near the top of the file.  If you need
more help than that, you probably should leave it there :-)
-ls-

Bob Segrest <Bob.Segrest@digital.com> wrote:
> Greetings,
> 
> I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> reason the 'rm' command seems t be built with the interactive '-i' switch
> turned on.  In general I have found this an annoyance.  But when a whole
> directory tree needs to be deleted, it is a real pain in the lower rectal
> region.  Am I overlooking something simple here ???
> 
> Does anyone have a suitable 'rm' executable that doesn't pester you  when
> told to delete something ???
> 
> Bob Segrest
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:18 Bob Segrest
                   ` (2 preceding siblings ...)
  1998-12-06  1:54 ` Larry Snyder
@ 1998-12-06  7:11 ` Michael Steele
  3 siblings, 0 replies; 10+ messages in thread
From: Michael Steele @ 1998-12-06  7:11 UTC (permalink / raw)
  To: axp-list

kill this line in /etc/profile

alias rm="rm -i"

Log out, then back in, and you're golden.


Bob Segrest wrote:

> Greetings,
>
> I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> reason the 'rm' command seems t be built with the interactive '-i' switch
> turned on.  In general I have found this an annoyance.  But when a whole
> directory tree needs to be deleted, it is a real pain in the lower rectal
> region.  Am I overlooking something simple here ???
>
> Does anyone have a suitable 'rm' executable that doesn't pester you  when
> told to delete something ???
>
> Bob Segrest
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
       [not found] <5518FE2C95E6D111B1A500104B72113B01D238EC@alfexc8.alf.dec.c om>
@ 1998-12-06 20:04 ` Maurice Hilarius
  0 siblings, 0 replies; 10+ messages in thread
From: Maurice Hilarius @ 1998-12-06 20:04 UTC (permalink / raw)
  To: axp-list

With regards to your message at 07:18 PM 12-05-98 -0500, Bob Segrest. Where
you stated:
>Greetings,
>
>I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
>reason the 'rm' command seems t be built with the interactive '-i' switch
>turned on.  In general I have found this an annoyance.  But when a whole
>directory tree needs to be deleted, it is a real pain in the lower rectal
>region.  Am I overlooking something simple here ???
>
>Does anyone have a suitable 'rm' executable that doesn't pester you  when
>told to delete something ???
>
rm -rf* works for me!


Best regards,

  Maurice W. Hilarius                   Telephone: 01-403-414-9319
  Hard Data Ltd.                      **FAX:       01-403-456-1510
  11060 - 166 Avenue                    email:maurice@harddata.com
  Edmonton, AB, Canada  - T5X 1Y3       http://www.harddata.com
  


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06  0:21 ` Bibek Sahu
@ 1998-12-06 21:54   ` Will Zimmerman
  1998-12-07  0:42     ` Todd Cohen
  0 siblings, 1 reply; 10+ messages in thread
From: Will Zimmerman @ 1998-12-06 21:54 UTC (permalink / raw)
  To: axp-list

> 
> 	Redhat aliases 'rm' to 'rm -i' for root.  To view all aliases,
> type 'alias' at the prompt.  To remove the alias for rm, type 'unalias
> rm'.
> 
> 	To get it to not ask you w/o removing the alias, use:
> 
> bash# rm -rf evil_directory/
> 
> - Bob

That sounds rather complicated.  /bin/rm will get you the "true" rm 
command, without having to change the aliases.

> 
> On Sat, 5 Dec 1998, Bob Segrest wrote:
> 
> > Greetings,
> > 
> > I am running Redhat 5.2 on an older Alpha EB64P motherboard.  For some
> > reason the 'rm' command seems t be built with the interactive '-i' switch
> > turned on.  In general I have found this an annoyance.  But when a whole
> > directory tree needs to be deleted, it is a real pain in the lower rectal
> > region.  Am I overlooking something simple here ???
> > 
> > Does anyone have a suitable 'rm' executable that doesn't pester you  when
> > told to delete something ???
> > 
> > Bob Segrest
> > 
> > 
> > -- 
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> > 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 
Dr WBJ Zimmerman
Senior Lecturer in Chemical and Process Engineering
Director, M Sc in Environmental and Energy Engineering
University of Sheffield
Newcastle Street
Sheffield S1 3JD
tel:+44-114-222-7517
fax:+44-114-222-7501


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: non-interactive deletes
  1998-12-06 21:54   ` Will Zimmerman
@ 1998-12-07  0:42     ` Todd Cohen
  0 siblings, 0 replies; 10+ messages in thread
From: Todd Cohen @ 1998-12-07  0:42 UTC (permalink / raw)
  To: Will Zimmerman; +Cc: axp-list

> > 
> > bash# rm -rf evil_directory/
> > 
> > - Bob
> 
> That sounds rather complicated.  /bin/rm will get you the "true" rm 
> command, without having to change the aliases.
or you can do a 

\rm 

the \ unaliases 

---------------------------------------------------
http://www.clarkson.edu/~cohentl
todd.cohen@clarkson.edu
"You can use divine intervention to solve the problem if you need to."
- Coleman, 1998
Clarkson University WCKN-TV, LUG, and SDCS: UNIX/Systems Administrations 
---------------------------------------------------


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-12-07  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5518FE2C95E6D111B1A500104B72113B01D238EC@alfexc8.alf.dec.c om>
1998-12-06 20:04 ` non-interactive deletes Maurice Hilarius
1998-12-06  1:42 Jeff DeMaagd
  -- strict thread matches above, loose matches on Subject: below --
1998-12-06  0:18 Bob Segrest
1998-12-06  0:21 ` Bibek Sahu
1998-12-06 21:54   ` Will Zimmerman
1998-12-07  0:42     ` Todd Cohen
1998-12-06  0:44 ` Kevin.Brown
1998-12-06  1:29   ` Mark Hansel
1998-12-06  1:54 ` Larry Snyder
1998-12-06  7:11 ` Michael Steele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox