Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nasirkhan
Last active December 21, 2023 16:26
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nasirkhan/372001c89f71da086873417c74610070 to your computer and use it in GitHub Desktop.
Save nasirkhan/372001c89f71da086873417c74610070 to your computer and use it in GitHub Desktop.
Split a Zip file and combine and unzip next linux

You have existing.zip but want to split it into 50M sized parts.

zip existing.zip --out new.zip -s 50m

will create

new.zip
new.z01
new.z02
new.z03
....

To extract them, you should first collect the files together and run

zip -F new.zip --out existing.zip

or

zip -s0 new.zip --out existing.zip

to recreate your existing.zip, Then you can simply

unzip existing.zip.

https://superuser.com/questions/336219/how-do-i-split-a-zip-file-into-multiple-segments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment