Create Dummy File In Linux


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your 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)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.