瀏覽單個文章
darksnow
Golden Member
 

加入日期: Aug 2002
文章: 2,806
man一下cp看有沒有-R可以用

-R If source_file designates a directory, cp copies the directory and
the entire subtree connected at that point. This option also
causes symbolic links to be copied, rather than indirected through,
and for cp to create special files rather than copying them as nor-
mal files. Created directories have the same mode as the corre-
sponding source directory, unmodified by the process' umask.

Note that cp copies hard linked files as separate files. If you
need to preserve hard links, consider using tar(1), cpio(1), or
pax(1) instead.
 
舊 2006-05-27, 11:09 AM #2
回應時引用此文章
darksnow離線中