Try this: \cp from to
IIRC, cp is an alias that translates to cp -i, I believe rm and mv are the same. Entering the leading \ overrides the alias. Hope that helps.
Happy trails,
Merv
-----Original Message----- From: Mike McCarty [mailto:Mike.McCarty@sbcglobal.net] Sent: Monday, March 05, 2007 6:06 PM To: CentOS mailing list Subject: Re: [CentOS] Lame question about cp
Paul Krash wrote:
Mario (?) wrote:
How can i copy a file to another with the same name without being prompted for a confirmation, and -f doesn't work?
Unalias cp doesn't work....hmmm.
How about
$ which cp
He may have some script sth.
Mike
Hi,
Thank you all for your suggestions.
\cp works just fine.
Warm Regards, Mário Gamito
On 3/5/07, Mário Gamito gamito@gmail.com wrote:
Thank you all for your suggestions.
\cp works just fine.
Really?
or you can do '\cp foo bar' without the ticks, which tells the
system to ignore the alias
for the command.
It's like deja-vu all over again
It doesn't work. I already tried that before posting.
*cough*
No applause, just throw money. :-P
Ah, ah... you don't deserve it :) LOL :)
*cough cough*
Sorry... something sticking in my throat..... :-P
/time to go beat the dead horse some more ;-)
On 05/03/07, Jim Perrin jperrin@gmail.com wrote:
/time to go beat the dead horse some more ;-)
I'd use \time, just in case time's aliased to something and on one's listening to you. ;)
Will.