How do I create a file of any given size on Linux? using the dd command. $ dd if=/dev/zero of=testss bs=1024 count=1048576 This will create a file of size 1024 * 1048576 bytes (or 1 GB). where if - input file of - output file or the file to be created bs - block size in bytes count - # of blocks of size bs Easiest and fasted way to create file of 250GB using DD command $ dd if=/dev/zero of=tests bs=1 count=0 seek=250G read dd(1) - Linux man page
This is my dashboard for Linux notes, programs, Embedded Linux from porting to board bring up..and All about my learning on Linux.