LindaC
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
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
ASKER
oracle@centurion[ctimsd1]< deadbeef>
/export/home/oracle>rm -f afiedt.buf
rm: remove afiedt.buf (yes/no)?
/export/home/oracle>rm -f afiedt.buf
rm: remove afiedt.buf (yes/no)?
Or do you have an alias?
alias rm
?
alias rm
?
ASKER
/export/home/oracle/tmp>al ias rm
rm='rm -i'
rm='rm -i'
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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/b in/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>
/export/home/oracle>ls -ltr af*
-rw-rw-r-- 1 oracle dba 287 Mar 14 2003 afiedt.buf
oracle@centurion[ctimsd1]<
/export/home/oracle>/usr/b
oracle@centurion[ctimsd1]<
/export/home/oracle>ls -ltr af*
af*: No such file or directory
oracle@centurion[ctimsd1]<
/export/home/oracle>
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>
oracle@centurion[ctimsd1]<
/export/home/oracle>\rm -f sqlnet.log
oracle@centurion[ctimsd1]<
/export/home/oracle>ls -ltr sqlnet.log
sqlnet.log: No such file or directory
oracle@centurion[ctimsd1]<
... and shorter
ASKER
I choose the Best solution because it was shorter.
OK, it's been me who suggested checking for an alias, but who cares ...
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
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
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
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
rm -f
wmp