Re: cp command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 18 July 2006 07:49, JV wrote:
> an even easier 2 approaches.
>   cp -f  will override the -i and do the copy without prompting
> for confirmation

Doesn't seem to work here ....

10:25:31 # touch fileA
10:25:57 # touch fileB
10:26:03 # which cp
alias cp='cp -i'
        /bin/cp
10:26:15 # cp fileA fileB
cp: overwrite `fileB'? n
10:26:29 # cp -f fileA fileB
cp: overwrite `fileB'? n

>   \cp  will use the default cp command and NOT use the alias 

Thanks for the tip!


Regards, Mike Klinke


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux