Linux – Create a dummy file with specific size

Use the following command to create a 10MB file.

  • dd if=/dev/zero of=<filename> bs=1024k count=10

 

The output file size is equal to bs x count.

Done =)

Reference: Creating Empty File with Specified Size

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.