2gb: Sample File Best

Depending on your operating system, use one of the following commands in your terminal or command prompt:

fallocate -l 2G sample_2gb.file