How to create a large file on linux for testing?

If you need to create a file with a specific filesize on linux for testing , you can run this command
$ truncate -s filesize filename

for ex: truncate -s 100MB output.file

this will create file 100MB output.file

Leave a Reply

Your email address will not be published. Required fields are marked *