About EOT

Integer ASCII code: 4
Binary code: 0000 0100
Octal code: 4
Hexadecimal code: 04
Group: control
Seq: ^D

Unicode symbol: , int code: 9220 (html &#9220) hex code: 2404 (html &#x2404)


Frequently used on Unix in order to show end-of-file on a terminal.

End-of-Transmission character or shortly EOT is a transmission control character in telecommunication. Its main goal is to show the conclusion of a transmission that could have consisted of one or more texts as well as any related message headings.

Some other functions are triggered by EOT as well, for example releasing circuits, disconnecting terminals, or putting receive terminals in a backup condition. Nowadays it's often used in order to to cause a Unix terminal driver to signal end of file, this way exit programs that are awaiting input.

The character is encoded at U+0004 <control-0004> in ASCII and Unicode. It can be mentioned as Ctrl+D, ^D in caret notation. When EOT needs a graphic display, Unicode provides the character U+2404 ␄ SYMBOL FOR END OF TRANSMISSION (HTML &#9220;). Besides, U+2301 ⌁ ELECTRIC ARROW can be used as a graphic reflection of EOT; in Unicode it is mentioned as"symbol for End of Transmission".

Meaning in Unix

One has to know, that EOT character in Unix and Control-Z in DOS are two different things. The DOS Control-Z byte's primer function is to send and/or place in files in order to show the end of the text. On the contrary, the Control-D makes the Unix terminal driver to signal the EOF condition. It is not a character, so the byte has no particular meaning if it is read or written from a file or terminal.

EOT character in Unix makes the terminal driver to immediately make all characters in its input buffer available. In any normal situation the driver would collect characters and stop doing it when see an end-of-line character. In case when the input buffer is empty (for the reason that 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. Such a condition in Unix means nothing but having reached the end of the file.

The cat program on Unix-based operating systems, for example Linux, can show it pretty well: in order to begin, run the cat command. It will accept its input from the keyboard and print output to the screen. Type a few characters but don't press ↵ Enter. Finally type Ctrl+D. The characters typed to that point are sent to cat, which consequently writes them to the screen. The input stream can be considered to be finished and the program ends if Ctrl+D is typed without typing any characters first. A real EOT can be received by typing Ctrl+V then Ctrl+D.

The so - called "raw" mode of the terminal driver means, that it doesn't interpret control characters anymore, so the EOT character is sent to the program without any changes. The program may interpret it in any possible way. This way a program can consider the EOT byte as an indication that it should end the text; this would then be similar to how Ctrl+Z is handled by DOS programs.


input value base type output hash
EOT char MD5 ec7f7e7bb43742ce868145f71d37b53c
EOT char SHA1 a42c6cf1de3abfdea9b95f34687cbbe92b9a7383
4 dec MD5 a87ff679a2f3e71d9181a67b7542122c
4 dec SHA1 1b6453892473a467d07372d45eb05abc2031647a
00000100 bin MD5 8b270711503c2cb2bb68b836e9cd06ab
00000100 bin SHA1 2234557f0d6259e905bc0d71eae6d962a3fb6071
0000 0100 bin MD5 dc8317a9aa5a93b9735f07403fa1f46c
0000 0100 bin SHA1 78362143ff722cf84c935fc4766455fbd5779a04
4 oct MD5 a87ff679a2f3e71d9181a67b7542122c
4 oct SHA1 1b6453892473a467d07372d45eb05abc2031647a
04 hex MD5 7d0665438e81d8eceb98c1e31fca80c1
04 hex SHA1 798f861ee74f6ff83ccbc9c53b419941d0080e50
0x04 hex MD5 e01727650af8d81c52504113e942143b
0x04 hex SHA1 cc35a7395782908111509566248cbc75aedc0969
Back to ASCII table

 2018 © Dmytro Koshovyi. Ukraine, Mykolayiv.