Home > Others > Creating a large file in Windows / Linux

Creating a large file in Windows / Linux

Was working on a monitoring project, need to create a large file to test notifications.
Here is how we can do that.
Create a file of 500MB in Windows
fsutil file createnew  
fsutil file createnew output.file.dat 53687091200
Create a file of 256M in Linux
dd if= of=  bs=  count=
dd if=/dev/zero of=output.file.dat  bs=256M  count=1
Create a file of 512MB in Linux
dd if=/dev/zero of=output.file.dat  bs=256M  count=2    

from Blogger http://ift.tt/2aMjW2S
via IFTTT

Advertisements
Categories: Others Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: