Copying a directory hierarchy

Mike Jeays Mike.Jeays at rogers.com
Tue Dec 21 19:22:54 PST 2004


On Tue, 2004-12-21 at 21:08, Robert Huff wrote:
> Mike Jeays writes:
> 
> >  How does on copy a complete directory hierarchy, including any hidden
> >  files?
> >  
> >  "cp -rp" leaves them out.
> 
> 	cp -rp *
> 	cp -rp .*
> 
> 
> 				Robert Huff
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

This doesn't copy hidden files in lower-level directories, only in the
top level.  Thanks for the suggestion - a good idea that doesn't quite
do it.



More information about the freebsd-questions mailing list