Skip to content

Instantly share code, notes, and snippets.

@patrickgill
Last active May 22, 2020 14:06
Show Gist options
  • Save patrickgill/cfb91a94cd422702c6eceb11ec29281f to your computer and use it in GitHub Desktop.
Save patrickgill/cfb91a94cd422702c6eceb11ec29281f to your computer and use it in GitHub Desktop.
#mkfile on macOS. creates sparse files if possible
#mkfile -n size[b|k|m|g] filename
#1GB sparse file
mkfile -n 1g newfile
#dd
#1GB file
dd if=/dev/zero of=newfile bs=1024 count=1000*1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment