I have a zipped folder with many directories and I am wondering how would they be unzipped if I were to execute the unzip command with no arguments. An example would be:
home |---user1 |---dir1 |--- file01 |--- file02 |---user2 |---dir2 |---file03 |---file04
Let's say I zipped both /home/user1/dir1/* and /home/user2/dir2/* in one location and transferred it to another server that has the paths /home/user1 and /home/user2. If I transferred the zipped file to /root and executed
unzip folder.zip, what would happen? And how would I get those directories in the same paths in server 2 as they were in server 1?
The whole point is that I have similar environments and I want to be able to transfer from one server to the other a few files but not the entire directory and would I be able to use zip for that, or do I need to zip to one temporary location and then move as necessary.