Re: Option --force for cp

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

 





Aaron Konstam wrote:
On Tue, 2008-06-10 at 16:36 -0500, Bruno Wolff III wrote:
  
On Tue, Jun 10, 2008 at 16:24:52 +0200,
  Luc MAIGNAN <luc.maignan@xxxxxxxxxxxx> wrote:
    
Hi,

I definitively can't force cp to override existing files without asking 
confirmation.

According to documentation , I try :

cp -r --force src/file1 ./

but always a confirmation is asked...


What's wrong ?
      
cp is probably aliased to 'cp -i'. Try using:
'cp' -rf src/file1 ./

    
Actually executing:
/cp -r --force src/file1 ./

will remove the alias from the execution. Notice the leading '\'
character.


--
=======================================================================
It's a recession when your neighbour loses his job; it's a depression
when you lose yours. -- Harry S. Truman
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

  

Or just run /bin/cp -r --force src/file1 .          thereby forcing the use of the executable and not the alias.  I don't understand the use of the / at the front of the command unless cp lives under the / directory.

Kevin
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux