On Thu, Nov 11, 2010 at 3:12 AM, Tha.Suresh <[email protected]> wrote: > > Create a file of a given size in linux > > $ truncate -s 10M file
Another way of doing this (in case your system doesn't support sparse files) is: $ dd bs=SIZE if=/dev/zero of=FILENAME or to create a file with random binary file: $ dd bs=SIZE if=/dev/random of=FILENAME (see man dd for details) SB -- l...@iitd - http://tinyurl.com/ycueutm
