LinuxCommandLibrary

zipsplit

Split ZIP archive into smaller parts

TLDR

Split archive

$ zipsplit [path/to/archive.zip]
copy
Split with size limit
$ zipsplit -n [size] [path/to/archive.zip]
copy
Pause between parts
$ zipsplit -p -n [size] [path/to/archive.zip]
copy
Output to directory
$ zipsplit -b [path/to/output_directory] -n [size] [path/to/archive.zip]
copy

SYNOPSIS

zipsplit [OPTIONS] ZIPFILE

DESCRIPTION

zipsplit splits a ZIP archive into smaller ZIP archives. The default size limit is 36000 bytes (36KB) if not specified.
Output files are named with numeric suffixes based on the original filename.

PARAMETERS

-n SIZE

Maximum bytes per split archive
-p
Pause between creating each part
-b PATH
Output directory for split archives
-t
Report how many files would be created
-r ROOM
Leave room for extra bytes in first archive

CAVEATS

Files that exceed the size limit cannot be split. All parts are needed to extract the complete archive contents.

SEE ALSO

zip(1), unzip(1), split(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community