View Single Post
  #2   (View Single Post)  
Old 12th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Why, cp(1) of coarse.

Quote:
Originally Posted by cp(1)
-R If source designates a directory, cp copies the directory and the
entire subtree connected at that point. Created directories have
the same mode as the corresponding source directory, unmodified
by the process's umask.

This option also causes symbolic links to be copied, rather than
followed, and special files to be created, rather than being
copied as normal files. However, cp copies hard linked files as
separate files. To preserve hard links, use a utility such as
pax(1) or tar(1) instead.
Reply With Quote