apple developer

home tech-notes github twitter stackoverflow dev.to

Zip and Split notes

zip directory, without compressing and encrypting with a password:

zip -0er backup-desktop.zip backup_desktop/

split backup-desktop.zip to 1megabyte files in backup_split directory with backup-desktop- prefix:

split -b 1m backup-desktop.zip backup_split/backup-desktop-

md5 backup-desktop.zip file:

md5 -q backup-desktop.zip

md5 splitted files

cat backup_split/backup-desktop-* | md5 -q

merge files:

cat backup-desktop-* > backup-desktop.zip

unzip files:

unzip backup-desktop.zip

download this page as .md

download this page as .pdf