Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Is it possible to ‘instantly’ create arbitrary files?

I work on Linux centos. I want to fill the /var partition to check the system behavior. What is a quick way to fill the partition ? The /var is around 20GB and I want to fill around 18GB.

share|improve this question

migrated from Oct 31 '12 at 22:01

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Daniel Beck Oct 31 '12 at 22:09

This question was marked as an exact duplicate of an existing question.

dd if=/dev/zero of=output.dat bs=1G count=18

your block size is 1GB and you write 18 blocks

share|improve this answer
I don't think that count=0 will copy anything? – Nikos C. Oct 31 '12 at 22:00
@NikosC. I'll just simplify it. – New Alexandria Oct 31 '12 at 22:01