cp versus cpio

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Lynn David Newton
Date:  
Subject: 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