How to create a large file on linux for testing?

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

Comments are closed, but trackbacks and pingbacks are open.