cp versus cpio

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Jeremy C. Reed
Dato:  
Emne: cp versus cpio
On Thu, 23 Oct 2003, Lynn David Newton wrote:

> Does anyonw have any particular insight into the
> advangages/disadvantages of using cp -R versus cpio?


cpio is useful because it can be piped over a ssh connection.

I also like -d (--make-directories) for creating leading directories as
needed.

As for access time, GNU cpio 2.5 has:
       -a, --reset-access-time
              Reset the access times of files after reading them, so that it
              does not look like they have just been read.


Jeremy C. Reed
http://bsd.reedmedia.net/