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)


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.