Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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