> dd if=/dev/zero of=testfile count=10000&&gzip testfile&&ls -la testfile No need to fill up your own disk -- do this instead: dd if=/dev/zero bs=1k count=10000 | gzip - > testfile.gz