Link to home
Create AccountLog in
Avatar of LindaC
LindaCFlag for Puerto Rico

asked on

I want to be able to remove oracle things without asking me : rm (yes/no)

Hi experts.

Solaris 5.8.
I want to be able to remove oracle things without asking me :  rm (yes/no)
Also I'am doing a rm -f with no sucess.


/export/home/oracle>rm *.txt
rm: remove crontab_oracle.txt (yes/no)? yes
rm: remove prepaid_summary.txt (yes/no)? yes
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Use

rm -f

wmp
Avatar of LindaC

ASKER

oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>rm -f afiedt.buf
rm: remove afiedt.buf (yes/no)?
Or do you have an alias?

alias rm

?
Avatar of LindaC

ASKER

/export/home/oracle/tmp>alias rm
rm='rm -i'
SOLUTION
Avatar of Brian Utterback
Brian Utterback
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of LindaC

ASKER

Great!


/export/home/oracle>ls -ltr af*
-rw-rw-r--   1 oracle   dba          287 Mar 14  2003 afiedt.buf
oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>/usr/bin/rm af*
oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>ls -ltr af*
af*: No such file or directory
oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>
Avatar of LindaC

ASKER

This also great!
oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>\rm -f sqlnet.log
oracle@centurion[ctimsd1]<deadbeef>
/export/home/oracle>ls -ltr sqlnet.log
sqlnet.log: No such file or directory
oracle@centurion[ctimsd1]<deadbeef>
... and shorter
Avatar of LindaC

ASKER

I choose the Best solution because it was shorter.
OK, it's been me who suggested checking for an alias, but who cares ...
Avatar of xterm
xterm

rm -i means to ask for confirmation.

rm -f should actually override that alias, but it won't do so in a directory that is write-protected

see http://en.wikipedia.org/wiki/Rm_(Unix)

You would need to do (as root) 'chmod u+w oracle' in /export/home
Avatar of LindaC

ASKER

Wollmilk*

I chose your answer as the best solution.  The other person (blu) also help in a very different manner, not the best because it was larger.  


Famous Quote:

In this earth there is space for everyone!

     By Me - Linda Cotto