Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Last active December 27, 2015 03:29
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 nghuuphuoc/7260275 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/7260275 to your computer and use it in GitHub Desktop.
Create a large file
1) dd if=/dev/zero of=FileName bs=<block size> count=<block count>
The following command creates a file named big_file.dat with size of 1GB:
dd if=/dev/zero of=big_file.dat bs=1024 count=1000000
2) mkfile -n size[b|k|m|g] filename
For example:
mkfile -n 1g big_file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment