I want to copy some or all files from a directory test/A/ to directory test/B/, but without copying directory A itself.
I tried the command cp -R test/A/ test/B, but it copies the directory and the files as well and become test/B/A/…
|
|
|
When you specify To copy only the contents of a directory, use the
Here, |
|||
|
|
|
to get an identical copy locally or remote I would prefer to copy a directory
to copy the contents of directory
if B does not exist it's created |
||||
|
|