Custom Search

Friday, May 4, 2012

Creating large empty files using dd command Linux

  
1) Example to create 10GB file.

root@u1204x:~/openstack/volume# dd if=/dev/zero of=testfile bs=10M count=1024
1024+0 records in
1024+0 records out
10737418240 bytes (11 GB) copied, 93.2277 s, 115 MB/s
root@u1204x:~/openstack/volume#
root@u1204x:~/openstack/volume# ls -lsh
total 11G
11G -rw-r--r-- 1 root root 10G May  3 23:33 testfile
root@u1204x:~/openstack/volume#



































No comments:

Post a Comment