Why does 'cp -f' not work anymore?

Cameron Simpson cs at zip.com.au
Wed Nov 2 00:31:35 UTC 2005


On 01Nov2005 14:43, Richard Bullington-McGuire <rbulling at pkrinternet.com> wrote:
| Someone else mentioned checking your $HOME/.bashrc (that references 
| /etc/bashrc on my system), but if you want the alias to work most of the 
| time, a trick for selectively disabling the alias is to enclose the cp 
| command in single quotes:
| 
| 'cp' -f newfile.txt this-has-to-go.txt

Even easier is to quote just one character instead of the whole word:

  \cp -f newfile.txt this-has-to-go.txt

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

The ZZR-1100 is not the bike for me, but the day they invent "nerf" roads
and ban radars I'll be the first in line......AMCN




More information about the redhat-list mailing list