cp versus cpio

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Lynn David Newton
Dátum:  
Tárgy: cp versus cpio
Does anyonw have any particular insight into the
advangages/disadvantages of using cp -R versus cpio?

Back when I first used Unix cp did not have a recursive
flag. In fact, there are probably still versions that
do not. So for the past 20 years, whenever I've wanted
to copy a directory tree. I'd simply use find plus
appropriate flags, maybe filtered and pipe it to
cpio -pudvm or some variation.

These days when I see other people's scripts, I rarely
see cpio used. Is it because they don't know about
cpio, which is trickier to use than cp, or am I just
hopelessly old-fashioned and behind the times?

--
Lynn