[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: cp command in linux issue
From: |
Patrick Chin |
Subject: |
RE: cp command in linux issue |
Date: |
Tue, 24 Nov 2009 09:22:31 -0500 |
Just want to inform you guys that:
address@hidden scripts]# cp -Run <source_directory> <destination>/.
cp: invalid option -- n
Try `cp --help' for more information.
address@hidden scripts]#
And I'm not using aliases for my cp command. I am though using Red Hat Linux
4.8 which I'm finding out arguments are not consistent from Linux/Unix OS
companies.
I'll try the rsync but it sound like it is more of a server-client app. I
thought the guy who wrote this cp command for Red Hat could help to have the
option to remove prompts with the -f option.
Thanks,
Patrick
-----Original Message-----
From: Eric Blake [mailto:address@hidden
Sent: Sunday, November 22, 2009 5:40 PM
To: Patrick Chin
Cc: address@hidden
Subject: Re: cp command in linux issue
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[please don't top-post on technical lists]
According to Patrick Chin on 11/22/2009 11:54 AM:
> I wish there was a way to just copy files that are missing without prompting.
> Especially over a very slow connection, it would be more efficient to just do
> an update rather than prompting and overwriting implicitly.
>
> Does anyone know what that argument is?
As I already mentioned, try cp -un. And if that doesn't do what you want,
then look into rsync. For that matter, rsync is better for copying over
slow connections, because it uses compression to speed up the bottleneck
of transfer rates.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksJvbQACgkQ84KuGfSFAYA/SQCfRZk8F5klu35DDej8NPVewYep
b08An3GoH1qYeu3X6D8fsThWmIR+YBkZ
=3KCh
-----END PGP SIGNATURE-----