Tags:
create new tag
, view all tags
See BLT.

/dev/zero: The psuedo-device that produces an endless stream of NULs

This device should NOT be confused with /dev/null. While reading from /dev/null returns 0 bytes of input (and indicates an EOF), reading from /dev/zero returns an endless stream of ASCII NUL characters (which is the "zero" 0 character in that set). (I'm not sure what it returns on the rare EBCDIC or other non-ASCII UNIX system; presumably still a stream of "zero" bits; whatever character that is to that architecture). (Writing to /dev/zero is undefined in the POSIX spec.? Thus it might succeed as with /dev/null, or it might return an error as if the device was full: EINVAL, EIO, or ENOSPC are possible errors in that case. Linux seems to simply allow writes to /dev/zero without error or complaint.)

See FHS#3_6_dev_Device_files.

Contributors

  • () JimDennis - 22 Oct 2003
  • If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your WikiName.

Revision Comment

  • %DATE% —

Page Ratings

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-10-22 - RandyKramer
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look