Create a file of a given size quickly
If you need a file of a given size, but don't care about the contents, you can use hdparm to create it. The size is specified in 1k blocks. The following command creates a 1GB file.
$hdparm --fallocate 1000000 /home/rlankenau/bigfile
Written by Russ Lankenau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Related Tags
#linux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#