Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: aussie on February 13, 2004, 03:46:50 AM
-
(I hope this is not too DUMB!)
Both cp and rm have the -i parameter to interactively check each file before action.
Sme setups seem to have this by default:
how do you override it, as I WANT to be able to
rm *.xxx to remove all .xxx files without interaction.
TIA Rob :pint:
-
Use the -f option (for force).
-
If you want to definitly modify these options, you can edit ~/.bashrc and remove or comment the 3 aliases. :hammer:
-
You could have done
man rm
at the command prompt to find out the correct syntax required, as you can also do with most other commands, assuming that a manual page(s) exist for it.
Regs
Ray
-
Use the -f option (for force).
i tried that ! still get 'overwrite' prompt.
regards Rob
-
What command are you actually entering ?
This works OK for me
rm -f 1.*
which deletes 1.msg and 1.txt without prompting
or
rm -f *.msg
deletes all *.msg files without prompting
Regs
Ray
-
If you want to definitly modify these options, you can edit ~/.bashrc and remove or comment the 3 aliases. :hammer:
GoodOnYa Grand-Pa !! THATS what I wanted.
oh and Ray, i DID man and info before posting but either the bashrc aint there or i missed it.
Anyway THERE IT IS BOLD AS BRASS in /root/.bashrc
alias cp='cp -i'
so I #'d that out and I am happy !!
thanks to all,
Robert