/dev/gzero vs /dev/zero

Ivan Voras ivoras at fer.hr
Wed Aug 1 10:51:27 UTC 2007

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

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070801/c2fc134a/signature.pgp

More information about the freebsd-current mailing list