I have two directories.
I want to copy, recursively, preserving the permissions, the files from the first "docs" directory to the second "docs" directory. Not replace the directory, but just copy the contents.
What's the syntax for that?
When I go...
cp -r -p /var/www/whatever/docs/ /var/www/second/docs/ - I get a "docs/docs/" directory.
What's the right way of doing it? (I assume the -r -p flags are correct also, right?)