From: Peter Garrett <peterg@fishinternet.com.au>
To: linux-newbie@vger.kernel.org
Subject: Fw: Re: Create files with specific sizes?
Date: Tue, 14 Dec 2004 21:55:17 +1100 [thread overview]
Message-ID: <20041214215517.76c0b120.peterg@fishinternet.com.au> (raw)
Begin forwarded message:
Date: Tue, 14 Dec 2004 10:41:19 +0100
From: SVisor <svisor@lycos.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Create files with specific sizes?
I have a follow up question.
...
>>is there any way (some command) that will allow me to
>>create blank files with specific sizes, eg 1MB, 5MB, 10MB etc.
...
> dd if=/dev/zero of=file1 bs=1k count=1024
I wanted a file of garbage, not zeroes.
So I tried: dd if=/dev/random of=file bs=1k count=1024
But to my suprise I got only a ~4k file. I know that dev/random may run
out of values. But should dd not wait until there are enought of data?
// Jarmo
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
reply other threads:[~2004-12-14 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041214215517.76c0b120.peterg@fishinternet.com.au \
--to=peterg@fishinternet.com.au \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox