Re: forcing overwrite with cp in FC5

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

CodeHeads wrote:
> On 9/19/06, Aaron Konstam <akonstam@xxxxxxxxxxxxx> wrote:
>>On Tue, 2006-09-19 at 12:24 +0200, Thomas Springer wrote:
>>> Am Dienstag, den 19.09.2006, 06:13 -0400 schrieb Michael W Cocke:
>>>> I know this must have been covered before, but I can't find it...
>>>>
>>>> How can I get cp to overwrite existing destination files without
>>>> being prompted for every file?
>>>
>>> When using bash, 'cp' is an alias for 'cp -i'.
>>>
>>> Try /bin/cp src dest
>>>
>>Or: \cp src dest
> 
> 
> This would work too: cp -f

Not when cp is aliased to cp -i:

# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
# touch test1 test2
# cp -f test1 test2
cp: overwrite `test2'? n

- -- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
Human war has been the most successful of all our cultural traditions.
    -- Robert Ardrey

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQFDBAEBAgAtBQJFEJHBJhhodHRwOi8vd3d3LnBvYm94LmNvbS9+dG16L3BncC90
bXouYXNjAAoJEEMlk4u+rwzj2lgH/0xanu1KpumrLEdIfqrEiWx+n5wPWTu2mt0i
8g/nIXptRvRrN4mHy6NYgUfyBsNF9zYvYZWw7fFw3tjruAMT1BbPrA/+iI1/QsBq
25WiQmkvcnbusxv7i9nGw6lqZGZ5impbsvdxvx3xPmKQ30xgl7S5a91VSc78sj5t
VDwBWsWfOEtbN7Uvp7sgQ3SRKhR/z0NQqgsfoj+vmegwxVECN3kRjMbjHKEeYWlf
eEWqPxozUsKMQ/ZwjsD/H4FiYjOb675YO21e+7fagv5hGdEUEO/0Tm5x7eCxIObw
YhTBwD0JlCMm1R1st5gd52bKqKPTSDpEmXw2TiHznS2oogZMc7E=
=hdcW
-----END PGP SIGNATURE-----

-- 
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