cp versus cpio

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Lynn David Newton
日付:  
題目: 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