Skip to content

Instantly share code, notes, and snippets.

@klausbrunner
Last active February 14, 2023 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klausbrunner/2d177cd259589807d506fbab9ce6e4ba to your computer and use it in GitHub Desktop.
Save klausbrunner/2d177cd259589807d506fbab9ce6e4ba to your computer and use it in GitHub Desktop.
# quickly create large/very populated zip files for testing purposes, without taking up lots of disk space
dd if=/dev/zero bs=1m count=10k | zip -9 single-10g-file.zip -
dd if=/dev/urandom bs=1 count=20000 | split -b 1 -a 4 - test_ && zip -q -m 20k-tiny-files.zip test_*
# this ensures CD entries with the LFH offset in the ZIP64 EIEF:
dd if=/dev/zero bs=1g count=6 | split -b 2g - test_ && zip -0 -m few-huge-files.zip test_*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment