Posted By

wearetherock on 03/13/10


Tagged

linux dummy dd


Versions (?)

Create Dummy File In Linux


 / Published in: Bash
 

URL: http://www.linuxtopia.org/online_books/linux_system_administration/debian_linux_guides/debian_linux_reference_guide/ch-tips.en_058.html

  1. $ dd if=/dev/zero of=filename bs=1k count=5 # 5KB of zero content
  2. $ dd if=/dev/urandom of=filename bs=1M count=7 # 7MB of random content
  3. $ touch filename # create 0B file (if file exists, updates mtime)

Report this snippet  

You need to login to post a comment.