Re: /dev/gzero vs /dev/zero

From: Ivan Voras <ivoras_at_fer.hr>
Date: Wed, 01 Aug 2007 12:51:05 +0200
Wilkinson, Alex wrote:
> Why would I use one over the other ?

/dev/gzero simulates a disk drive, /dev/zero is a regular amorphous
character device. It's sometimes useful to have a disk-drive-like device
that can accept anything (the fabled write-only media!), mostly for
development.

Also, gzero can be configured to "be made of" not only zeroes (\0) but
any other byte value, so it can be useful if you need "something like
/dev/zero" but not with actual ASCII 0 bytes.



Received on Wed Aug 01 2007 - 08:51:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:15 UTC