Hi,
Jim Perrin wrote:
-f should allow you to do this. For root, cp is aliased to cp -i, so you can either set the alias the way you want, or you can do '\cp foo bar' without the ticks, which tells the system to ignore the alias for the command.
It doesn't work. I already tried that before posting.
Any help would be appreciated.
No applause, just throw money. :-P
Ah, ah... you don't deserve it :) LOL :)
Regards, Mário Gamito
On Fri, 2 Mar 2007 at 8:32pm, Mário Gamito wrote
Jim Perrin wrote:
-f should allow you to do this. For root, cp is aliased to cp -i, so you can either set the alias the way you want, or you can do '\cp foo bar' without the ticks, which tells the system to ignore the alias for the command.
It doesn't work. I already tried that before posting.
Don't log in as root directly -- use sudo instead. That will avoid the alias altogether.
On 3/2/07, Mário Gamito gamito@gmail.com wrote:
Hi,
Jim Perrin wrote:
-f should allow you to do this. For root, cp is aliased to cp -i, so you can either set the alias the way you want, or you can do '\cp foo bar' without the ticks, which tells the system to ignore the alias for the command.
It doesn't work. I already tried that before posting.
Try running:
/bin/cp -f $old_file $new_file
Cheers...james
On 3/2/07, Mário Gamito gamito@gmail.com wrote:
No applause, just throw money. :-P
Ah, ah... you don't deserve it :) LOL :)
Works fine here, it's either user error or solar flares.
On Fri, Mar 02, 2007 at 08:32:03PM +0000, Mário Gamito wrote:
Hi,
Jim Perrin wrote:
-f should allow you to do this. For root, cp is aliased to cp -i, so you can either set the alias the way you want, or you can do '\cp foo bar' without the ticks, which tells the system to ignore the alias for the command.
It doesn't work.
try: unalias cp
that should clear the alias, if that's what's hanging you up.