In Linux you can do this:
Code: Select all
fallocate -l 10G temp_10GB_file
Code: Select all
fsutil file createnew temp_10GB_file 10000000000
Code: Select all
fallocate -l 10G temp_10GB_file
Code: Select all
fsutil file createnew temp_10GB_file 10000000000