Create a file of a given size in linux

$ truncate -s 10M file

if the fs support sparse file,using truncate can create sparse file.

more info:

http://en.wikipedia.org/wiki/Sparse_file

$ man truncate





-- 
Regards,
Tha.Suresh
http://thasulinux.wordpress.com

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to