Let's say you have this directory tree
parent
-----child1
-----file0
-----grandchild1
-----file1
-----file2
-----grandchild2
-----file3
-----child2
Now there are two things I need to learn how to do
- Copy the folder child1 into child2, so that there will be a parent/child2/child1/grancdhild1/file1
- Copy the contents of folder child1 to child2, so there will parent/child2/grancdhild1/file1
Notice the second one does not have a "child1", in the first one we are copying a folder into a new folder, in the second one we are copying the contents of a folder to another folder.
If it matters, lets say your current location is parent.
My main challenge here is to copy everything (sub directories, hidden files etc..)