Let's say I have folder structure like this:
/parentFolder/
folder1/
folder1.1/
file1
folder2/
file2
How do I copy folder2 inside folder1.1 so that file2 is also in
/parentFolder/folder1/folder1.1/folder2/file2
ie so that the folder structure looks like this:
/parentFolder/
folder1/
folder1.1/
folder2/
file2
file1
folder2/
file2
?
If I just go cp -R /parentFolder/folder2 /parentFolder/folder1/folder1.1 then it copies the content of the folder2, but I want to copy folder2 as well.
Related question: would the answer applies to mv as well?
cp -R /parentFolder/folder2/* /parentFolder/folder1/folder1.1to move only the content