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)


Information


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.


Hash


MD5 End of Transmission

input value base output hash
EOT char EC7F7E7BB43742CE868145F71D37B53C
4 dec A87FF679A2F3E71D9181A67B7542122C
00000100 bin 8B270711503C2CB2BB68B836E9CD06AB
0000 0100 bin DC8317A9AA5A93B9735F07403FA1F46C
4 oct A87FF679A2F3E71D9181A67B7542122C
04 hex 7D0665438E81D8ECEB98C1E31FCA80C1
0x04 hex E01727650AF8D81C52504113E942143B

SHA256 End of Transmission

input value base output hash
EOT char E52D9C508C502347344D8C07AD91CBD6068AFC75FF6292F062A09CA381C89E71
4 dec 4B227777D4DD1FC61C6F884F48641D02B4D121D3FD328CB08B5531FCACDABF8A
00000100 bin 147C476B8B3A9C860319710D4C37D12F102282FC47B8FABACDFB8AFAB6B4C7EC
0000 0100 bin 7465EE016BE913AA2B182F827ACE373B61223E69638B7E3D19045B11A2DD0962
4 oct 4B227777D4DD1FC61C6F884F48641D02B4D121D3FD328CB08B5531FCACDABF8A
04 hex 6CD5B6E51936A442B973660C21553DD22BD72DDC8751132A943475288113B4C0
0x04 hex B03A82D312479EEE2907C627AD3D9BA5DFB28F7C8B65B94EF9DC85999F1A2D77

Base64 End of Transmission

input value base output hash
EOT char BA==
4 dec NA==
00000100 bin MDAwMDAxMDA=
0000 0100 bin MDAwMCAwMTAw
4 oct NA==
04 hex MDQ=
0x04 hex MHgwNA==
Back to ASCII table

 2018-2024 © Dmytro Koshovyi. Ukraine, Mykolayiv.