2
1
Here is my file structure:
- someDirA
- folderOne
- folderTwo
- somefile.txt
- someotherfile.txt
- someDirB
- somefolder
What I want 'someDirB' to look like:
- someDirB
- somefolder
- folderTwo
- somefile.txt
- someotherfile.txt
I just want to copy someDirA's folderTwo(folder and all its contents) into someDirB. Both directories are in separate paths.
1You might find
cp -a
useful, as it adds to-r
extra options to preserve file attributes in the copied files. Alsocp -ua
will copy only updated files if you need to repeat the copy. – AFH – 2015-09-20T20:30:43.320