Click to See Complete Forum and Search --> : Copying a whole directory


rh10023
05-01-2001, 06:05 AM
When I used to use Tru64 a lot, in the man pages for tar had an example on how to copy a complete directory structure from one filesystem to another. I tried the same thing on Linux under tcsh and it does not work.

Can someone give me an example syntax on how to copy a directory structure including subdirectories from one file structure to another? I have a suspicion that cpio should be used but I can't seem to get to work.

It would be nice if Linux man pages have examples on how different programs/commands are used.

DrDebian
05-01-2001, 06:37 AM
Originally posted by rh10023:
<STRONG>When I used to use Tru64 a lot, in the man pages for tar had an example on how to copy a complete directory structure from one filesystem to another. I tried the same thing on Linux under tcsh and it does not work.

Can someone give me an example syntax on how to copy a directory structure including subdirectories from one file structure to another? I have a suspicion that cpio should be used but I can't seem to get to work.

It would be nice if Linux man pages have examples on how different programs/commands are used.</STRONG>

Have you tried "cp -avx /source/directory /target/directory" yet?