Copying a directory hierarchy

Mike Jeays Mike.Jeays at rogers.com
Tue Dec 21 18:02:26 PST 2004


How does on copy a complete directory hierarchy, including any hidden
files?

"cp -rp" leaves them out.

Some versions of cp seem to have a '-a' flag which will make it copy
them, but it isn't available in the FreeBSD version.  Is there a trick,
or something obvious I have missed?




More information about the freebsd-questions mailing list