Linux / Bash / CLI – Archive ZIP a folder and split files

 

Exemple split of 10M files

zip -r -s 10m archive.zip directory/

Use -s to set the split size and create a split archive.  The size is given as a number  followed  optionally  by one of k (kB), m (MB), g (GB), or t (TB) (the default is m).  The -sp option can be used to pause zip between splits to allow changing removable media, for example, but read the descriptions and  warnings for both -s and -sp below.