Skip to content

Instantly share code, notes, and snippets.

@pop3xrj
Created September 14, 2009 06:55
Show Gist options
  • Save pop3xrj/186542 to your computer and use it in GitHub Desktop.
Save pop3xrj/186542 to your computer and use it in GitHub Desktop.
It is possible to create files of arbitrary size on a linux machine using the dd command. Here is an example:
$ cd /tmp
$ dd if=/dev/zero of=bigfile bs=1024 count=1048576
This will create a file of size 1024 * 1048576 bytes (or 1 GB). In this command
* if - input file
* of - output file or the file to be created
* bs - block size in bytes
* count - # of blocks of size bs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment