Question: why eof is used in unix?
Answer: The question is ambiguous. In Unix, and Unix-like systems (including Linux and MacOS X) EOF (end-of-file) is a condition encountered by a read() operation on a file, terminal or file-like data stream (socket). It is not a character. ... These terminals settings can by viewed and modified by using the stty command.