creating file by 'dd'

Vram lamsokvr at xprt.net
Sat Sep 3 22:04:13 UTC 2005


On Sat, 2005-09-03 at 20:16 +0200, R.L. Reingard wrote:
> Hi Lee,
> 
> i do want to have a try with the idea of creating a (huge)file and then  
> erase it afterwards
> so i changed the command to create a small file first, which i could use  
> for a test.
> how to understand the outcome?
> 
> user at ubuntu:~$ dd if=/dev/zero of=/home/user/hugefile bs=1 count='expr  
> 1024 \* 1'
> dd: ungültige Zahl „expr 1024 \\* 1“
> user at ubuntu:~$
> 
> thank you for help
> René
> 


Try this


Command   dd if=/dev/zero  of=mybig  bs=1024k  count=3


vram at Aether:~/tmp $ dd if=/dev/zero  of=mybig  bs=1024k  count=3
3+0 records in
3+0 records out
3145728 bytes transferred in 0.018741 seconds (167851988 bytes/sec)


Result..


vram at Aether:~/tmp $ ls -l mybig
-rw-r--r--  1 vram vram  3145728 2005-09-03 15:00 mybig


Created a file of size   3125727 bytes.......

HTH

Vram







More information about the ubuntu-users mailing list