zip -r 1.zip /home/username/the_folder
At here, when i unzip 1.zip, it will create /home/username/the_folder, from whichever folder i am unzipping from.
How do I zip, stating the full absolute paths, but make the zip only contain the folder structure starting at, in this case for instance, /home/username?
That way I could be at whatever path i wanted, unzip and it would just create the_folder, and not /home/username/the_folder.
Use this command: