generating a file of a specific size mac mkfile -n 2g ~/some/file.txt linux truncate -s 5M ~/some/file.txt