I have a folder named test which has files and subdirectories in it. I want to copy the content of this test folder to another folder named live and here is what I did:
cp -pr /path/to/test/ /path/to/live/
But what I get is a folder test inside the live folder, but I don't want that. Then I tried this:
cp -pr /path/to/test/*.* /path/to/live/
But all I got was just files.
So, please tell me where am I doing it wrong.