Last active
December 27, 2015 03:29
-
-
Save nghuuphuoc/7260275 to your computer and use it in GitHub Desktop.
Create a large file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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