When I try to run ---> rm filename
I get the prompt rm filename y/n?
I create the file as user1 and remove the file as user2 I don't want to be
asked?
the Y/N? how can I get around this.
thanks
I create the file as user1 and remove the file as user2 I don't want to be
asked?
the Y/N? how can I get around this.
thanks
man rm
dave
Quote:> When I try to run ---> rm filename
> I get the prompt rm filename y/n?
> I create the file as user1 and remove the file as user2 I don't want to be
> asked?
> the Y/N? how can I get around this.
> thanks
> man rm
> dave
> > When I try to run ---> rm filename
> > I get the prompt rm filename y/n?
> > I create the file as user1 and remove the file as user2 I don't want to be
> > asked?
> > the Y/N? how can I get around this.
> > thanks
--------------------------------------------------------------------------- Source the profile again to make it work in your session, you will never be I would not recommend this approach, not even if you think you know what you --------------------------------------------------------------------------- Regards, Jan Gerrit Kootstra
|
DANGEROUS
|
---------------------------------------------------------------------------
A more dangerous approach is: look in your .profile or the /etc/profile and
find the alias rm='rm -i' and delete this line.
prompted again unitl you restore the alias.
are doing. I wipped an entire Oracle database once, because I was confinced
that was in the right directory. Unfortunately I was not the -i option was not
there to make me look once more. The end of the story, a DBA and I had to work
all night to restore the damn database structure.
|
DANGEROUS
|
---------------------------------------------------------------------------
NM
Dina Ghatit a crit :
Quote:> When I try to run ---> rm filename
> I get the prompt rm filename y/n?
> I create the file as user1 and remove the file as user2 I don't want to be
> asked?
> the Y/N? how can I get around this.
> thanks
> > rm -f filanme
> > man rm
> > dave
> > > When I try to run ---> rm filename
> > > I get the prompt rm filename y/n?
> > > I create the file as user1 and remove the file as user2 I don't want
to be
> > > asked?
> > > the Y/N? how can I get around this.
> > > thanks
> Dina,
> --------------------------------------------------------------------------
----
> |
> DANGEROUS
> |
> --------------------------------------------------------------------------
----
> A more dangerous approach is: look in your .profile or the /etc/profile
and
> find the alias rm='rm -i' and delete this line.
Quote:> Source the profile again to make it work in your session, you will never
be
> prompted again unitl you restore the alias.
> I would not recommend this approach, not even if you think you know what
you
> are doing. I wipped an entire Oracle database once, because I was
confinced
> that was in the right directory. Unfortunately I was not the -i option
was not
> there to make me look once more. The end of the story, a DBA and I had to
work
> all night to restore the damn database structure.
> --------------------------------------------------------------------------
----
> |
> DANGEROUS
> |
> --------------------------------------------------------------------------
----
> Regards,
> Jan Gerrit Kootstra
> > > rm -f filanme
> > > man rm
> > > dave
> > > > When I try to run ---> rm filename
> > > > I get the prompt rm filename y/n?
> > > > I create the file as user1 and remove the file as user2 I don't want
> to be
> > > > asked?
> > > > the Y/N? how can I get around this.
> > > > thanks
> > Dina,
> > --------------------------------------------------------------------------
> ----
> > |
> > DANGEROUS
> > |
> > --------------------------------------------------------------------------
> ----
> > A more dangerous approach is: look in your .profile or the /etc/profile
> and
> > find the alias rm='rm -i' and delete this line.
> No! No! Don't delete it. Just comment it out!
Jan Gerrit KootstraQuote:> > Source the profile again to make it work in your session, you will never
> be
> > prompted again unitl you restore the alias.
> > I would not recommend this approach, not even if you think you know what
> you
> > are doing. I wipped an entire Oracle database once, because I was
> confinced
> > that was in the right directory. Unfortunately I was not the -i option
> was not
> > there to make me look once more. The end of the story, a DBA and I had to
> work
> > all night to restore the damn database structure.
> > --------------------------------------------------------------------------
> ----
> > |
> > DANGEROUS
> > |
> > --------------------------------------------------------------------------
> ----
> > Regards,
> > Jan Gerrit Kootstra
> > > > rm -f filanme
> > > > man rm
> > > > dave
> > > > > When I try to run ---> rm filename
> > > > > I get the prompt rm filename y/n?
> > > > > I create the file as user1 and remove the file as user2 I don't
want
> > to be
> > > > > asked?
> > > > > the Y/N? how can I get around this.
> > > > > thanks
> > > Dina,
> --------------------------------------------------------------------------
> > ----
> > > |
> > > DANGEROUS
> > > |
> --------------------------------------------------------------------------
> > ----
> > > A more dangerous approach is: look in your .profile or the
/etc/profile
> > and
> > > find the alias rm='rm -i' and delete this line.
> > No! No! Don't delete it. Just comment it out!
> How do I do that? I mean which special character does one need for that?
As I
> suggested before, do not this kind of excercise at all.
alias rm='rm -i'
you put a # symbol in as the first character in the line. BTW, I would have
thought this would have been explained in the manual on shells or in one of
the man pages. :-)
I trust this helps some.
Regards,
Julian.
Quote:> > > Source the profile again to make it work in your session, you will
never
> > be
> > > prompted again unitl you restore the alias.
> > > I would not recommend this approach, not even if you think you know
what
> > you
> > > are doing. I wipped an entire Oracle database once, because I was
> > confinced
> > > that was in the right directory. Unfortunately I was not the -i
option
> > was not
> > > there to make me look once more. The end of the story, a DBA and I had
to
> > work
> > > all night to restore the damn database structure.
> --------------------------------------------------------------------------
> > ----
> > > |
> > > DANGEROUS
> > > |
> --------------------------------------------------------------------------
> > ----
> > > Regards,
> > > Jan Gerrit Kootstra
> Jan Gerrit Kootstra
> > > > > rm -f filanme
> > > > > man rm
> > > > > dave
> > > > > > When I try to run ---> rm filename
> > > > > > I get the prompt rm filename y/n?
> > > > > > I create the file as user1 and remove the file as user2 I don't
> want
> > > to be
> > > > > > asked?
> > > > > > the Y/N? how can I get around this.
> > > > > > thanks
> > > > Dina,
> > --------------------------------------------------------------------------
> > > ----
> > > > |
> > > > DANGEROUS
> > > > |
> > --------------------------------------------------------------------------
> > > ----
> > > > A more dangerous approach is: look in your .profile or the
> /etc/profile
> > > and
> > > > find the alias rm='rm -i' and delete this line.
> > > No! No! Don't delete it. Just comment it out!
> > How do I do that? I mean which special character does one need for that?
> As I
> > suggested before, do not this kind of excercise at all.
> IIRC, in the .cshrc file, or wherever this alias is defined in your account,
> to comment out the line:
> alias rm='rm -i'
> you put a # symbol in as the first character in the line. BTW, I would have
> thought this would have been explained in the manual on shells or in one of
> the man pages. :-)
> I trust this helps some.
> Regards,
> Julian.
> > > > Source the profile again to make it work in your session, you will
> never
> > > be
> > > > prompted again unitl you restore the alias.
> > > > I would not recommend this approach, not even if you think you know
> what
> > > you
> > > > are doing. I wipped an entire Oracle database once, because I was
> > > confinced
> > > > that was in the right directory. Unfortunately I was not the -i
> option
> > > was not
> > > > there to make me look once more. The end of the story, a DBA and I had
> to
> > > work
> > > > all night to restore the damn database structure.
> > --------------------------------------------------------------------------
> > > ----
> > > > |
> > > > DANGEROUS
> > > > |
> > --------------------------------------------------------------------------
> > > ----
> > > > Regards,
> > > > Jan Gerrit Kootstra
> > Jan Gerrit Kootstra
I just use to much different Unix versions (and tools) for my own good, that I
sometimes get confused.
Thanks for the info.
Regards,
Jan Gerrit
1. Recover or un-remove and removed file...
On HP-UX 10.01, is there a way to undelete a removed file ?
Thanks - Geoff.
3. How to translate Linux's PS1 prompt to Unix's PS1 prompt?
4. Curious ?5
5. How to remove vg belonging to removed disk
7. How to remove a removed disk from LVM
9. Stop HP-ftpd telling SGI-NetScape that all ascii files are text?
11. Removing future dated files
12. Removing Files