This command will copy a directory with its content to another directory,
for example you have a directory named x, you want to copy it to another directory named y
cp -dpr x y
That’s it!
Related posts:
This command will copy a directory with its content to another directory,
for example you have a directory named x, you want to copy it to another directory named y
cp -dpr x y
That’s it!
Related posts:
Trackback URL for this post:
http://pixert.com/copy-a-directory-with-its-contents-in-centos/trackback/
If you are interested in using our service feel free to contact us.
Either by sending a mail to studio[at]pixert[dot]com,
or using our jQuery improved ajax contact form

Hi,
a simple
“cp -a foo bar”
will do the trick even a bit faster.
–
so long