Mailinglist Archive: opensuse (4054 mails)

< Previous Next >
Re: [opensuse] undelete files that were deletet with "rm"?
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Tue, 3 Jan 2006 07:30:45 -0800
  • Message-id: <200601030730.45309.rschulz@xxxxxxxxx>
Rasmus,

On Tuesday 03 January 2006 07:20, Rasmus Plewe wrote:
> On Tue, Jan 03, 2006 at 06:49:15AM -0800, Randall R Schulz wrote:
> > On Tuesday 03 January 2006 04:43, jdd wrote:
> > > Reinhard Gimbel wrote:
> > > > That's why I use the "alias" feature of bash to set the
> > > > "-i"-option for most of the "dangerous" commands dealing with
> > > > file on CLI level
> > >
> > > and so most of the time you type rm -f *...
> >
> > Check it out. The "-i" option trumps "-f", regardless of their
> > order.
>
> $ touch foo
> $ rm -if foo
> $ touch foo
> $ rm -fi foo
> rm: remove regular empty file `foo'? y
> $

How very lame. What I said is true of "cp" but not of "rm!" (The cp
behavior always bugs me 'cause adding the "-f" doesn't help and I have
to enter the full path name to the binary if I want to overwrite a file
with the cp command.)


> Rasmus


Randall Schulz

< Previous Next >