kieranbarnes Independent PHP, WordPress & CubeCart Programmer

[Snippet] Create a large file in Linux

Posted on August 21, 2010

Need to create a large file? For disk speed tests? Or space tests?

  1. dd if=/dev/zero of=your.big.file bs=1MB count=500

This will create a 500Mb file in your current directory called  your.big.file

  1. 500+0 records in
  2. 500+0 records out
  3. 500000000 bytes (500 MB) copied, 4.08855 seconds, 122 MB/s

Related posts

  1. Messing with time and date on Linux
    Some Linux distros don't come with time synchronisation utilities, even though Windows has done it...
  2. Fixing cPanel File Permissions
    Sometimes users mess with their own file permissions that they no longer work. They will...
  3. How to install the nslookup, host OR dig commands in Linux?
    Sometimes you are unable to use the nslookup, host OR dig command on your Linux...
  4. Alternate ‘Messing with time and date on Linux’
    Following up from a previous post, some hypervisors like Xen are a bit fruity when...
  5. [Snippet] Allow mysql root access from anywhere
    A small annoyance of mine is on local development servers, I can't login to the...

Posted by Kieran


Tagged as: , Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.