loading words...

Jun 16, 2019 20:08:00

Split zip files on Mac OSX

by @valentino | 222 words | 60🔥 | 358💌

Valentino Urbano

Current day streak: 60🔥
Total posts: 358💌
Total words: 170604 (682 pages 📄)

Having the need of splitting files is something that comes up less and less often to everyone's joy. Unfortunately it still happens to me to have to deal with legacy systems were FAT is the norm at least once a year.

The main problem is with FAT partitions that will support only up to 4GB. Most HHD and OSes are now using something better than FAT that supports big files.

From the command line you can do it in one line:
zip existing.zip --out new.zip -s 50m

This command will create multiple zip files up to 50mb. Double click on the first file in the archive to unzip it.

A different solution from superusers:

  1. To create a split zip archive (a series of files named zip, z01, z02…), run following command in Terminal:

zip -s 100m -x '*.DS_Store' -r split-foo.zip foo/

  1. To extract a split zip archive (a series of files named zip, z01, z02…), run following command in Terminal:

First, combine the split archive to a single archive:

zip -s 0 split-foo.zip --out unsplit-foo.zip

Extract the single archive using unzip:
unzip unsplit-foo.zip
if you have splitted binaries, like file.zip.001, file.zip.002 … you may just need to combine the files e.g. using cat command: cat file.zip.* > single.zip – abimelex Apr 29 '15 at 9:52

If you prefer an application instead of doing it from the Terminal try 'keka'.

Originally published at www.valentinourbano.com

  • 1

    @valentino used to do this back in the day to give my friends copies of DOOM for DOS. Used a program called ARJ to compress and span across 1.44mb floppy disks.

    Twizzle avatar Twizzle | Jun 16, 2019 20:30:15
contact: email - twitter / Terms / Privacy