Create a test file

This tutorial will show you how to create a test file under RedHat-like Linux operating systems. It will be useful when you need to test FTP, Mail, Samba or any protocol and you do not have big file handy to send.

To create a test file simply copy the following line in your Linux shell:

After the execution of this line, a test.bin file will be created with a size of 1000000000 bits – approximately 1GB. You can manage the ”bs” variable to change the size of the test file.

Filed Under: Bash Scripting

Anthony Gee About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.

Comments (1)

  1. richard.bary@tyrefit.com says:

    Perfect Linux test file solution.

    Cheers!

Leave a Reply