Skip to content

Instantly share code, notes, and snippets.

@gauravbarthwal
Last active December 11, 2025 16:09
Show Gist options
  • Select an option

  • Save gauravbarthwal/3fc0b44934ce78a97fd4e99322d2ed62 to your computer and use it in GitHub Desktop.

Select an option

Save gauravbarthwal/3fc0b44934ce78a97fd4e99322d2ed62 to your computer and use it in GitHub Desktop.
How to extract multi-part .zip, .z01, .z02 files in ubuntu
Download/Copy all related *.zip files in one directory.
Open terminal and change to that directory which has all zip files.
Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip
Enter unzip COMBINED_FILE.zip
@dvlshah

dvlshah commented May 14, 2020

Copy link
Copy Markdown

Thanks so much. I searched for it a lot and nothing worked for me. This was perfect. 👍

@talalife

Copy link
Copy Markdown

Just did a massive 18-part archive stitching on my iPhone using Alpine Linux in iSh app. Thanks a lot!

@gauravbarthwal

Copy link
Copy Markdown
Author

Thanks so much. I searched for it a lot and nothing worked for me. This was perfect. 👍

Thank you. Glad it help you.

@gauravbarthwal

Copy link
Copy Markdown
Author

Just did a massive 18-part archive stitching on my iPhone using Alpine Linux in iSh app. Thanks a lot!

Thanks

@wxupjack

Copy link
Copy Markdown

This is the best solution I found! 🙏 👍

@utamadonny

Copy link
Copy Markdown

thank you

@udithhaputhanthri

Copy link
Copy Markdown

It worked. Thanks

@Syakhisk

Copy link
Copy Markdown

👏

@kadiri2006

Copy link
Copy Markdown

HOW CAN I USE THIS COMMANDS IN COLAB

@liujingcs

Copy link
Copy Markdown

It worked. Thanks!!!

@qndydyhm

Copy link
Copy Markdown

thank you! It works for me

@DaniilSintsov

Copy link
Copy Markdown

Thank you very much!

@javlonrahimov

Copy link
Copy Markdown

Thanks so much.

@Rana1019

Rana1019 commented Jun 5, 2022

Copy link
Copy Markdown

Hey, could you explain what the -s- means, i know -s is the flag and it needs a size after -s but how does - after -s work. Thanks btw. I searched for an hour before I found this thread

@karankumar-07

karankumar-07 commented Jul 15, 2022

Copy link
Copy Markdown

''-" after -s joins all zip files together.

@sdmurcia

Copy link
Copy Markdown

Hi! I'm new on Linux and I would appreciate it if someone could explain this process in detail. I do have multiple zip files with this name: *Z001, *Z002, etc... Do I have to repeat the third step (Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip) for each file? otherwise, what should I put in the FILE_NAME.zip field?

@zyk6

zyk6 commented Jun 1, 2023

Copy link
Copy Markdown

Thanks so much.

@ImranNust

Copy link
Copy Markdown

Thank you so much! I spent many hours finally found your code and it helped.

@SUPERustam

Copy link
Copy Markdown

Thank you!!!!!

@ZachL1

ZachL1 commented Jun 28, 2025

Copy link
Copy Markdown

It worked. Thanks!!!

@licsber

licsber commented Dec 11, 2025

Copy link
Copy Markdown

is any more elegant method that not double disk space ?

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