Skip to content

Generate dummy file in Linux

Generate dummy file in Linux

Answer:

To generate random files of fixed size (e.g. 1GB) in Linux:

dd if=/dev/zero of=test.bin bs=1000000000 count=1

You can adjust the file size by setting the bs parameter (byte size).

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to create a dummy file with a given size in Linux?
  2. Generate random number in Linux
  3. How to ignore dummy files (e.g. from CVS, SVN) during rsync?
  4. Generate random number in Perl
  5. How to determine the type of a file in Linux

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*