Making a file of any size

Although, there are online tools on the Internet to make a fake file with a given size that we want, we could also use dd command of Linux system to create a file with an amount of Bytes that we want.

$ dd if=/dev/zero of=output_file.dat  bs=16M  count=1

or equivalently,

$ dd if=/dev/zero of=output_file.dat  bs=1M  count=16
Advertisements

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