(Fix link to disambiguation page)
== Meaning in Unix ==
The EOT character in Unix is different from the [[Control-Z]] in DOS. The DOS Control-Z byte is actually sent and/or placed in files to indicate where the text ends. In contrast the Control-D causes the Unix terminal driver to signal the [[EOF]] condition, which is not a character, while the byte has no special meaning if actually read or written from a file or terminal.
In Unix the end-of-file character (by default EOT) causes the terminal driver to make available all characters in its input buffer immediately; normally the driver would collect characters until it sees an end-of-line character. If the input buffer is empty (because no characters have been typed since the last end-of-line or end-of-file), a program reading from the terminal reads a count of zero bytes. In Unix, such a condition is understood as having reached the end of the file.