← Back
osx

Creating files with certain sizes on mac osx

I need to test file upload size limits. So I created a bunch of files:

mkfile -n 1g ~/Downloads/2gb-file.bin
mkfile -n 10m ~/Downloads/10mb-file.bin
mkfile -n 10k ~/Downloads/10kb-file.bin