DEV Community

Discussion on: The power behind the Linux terminal

Collapse
 
phantas0s profile image
Matthieu Cneude

The shell is my best friend. There is no better tool to deal with plain text.

There is a slight difference between the shell and the terminal: the first is an interpreter, the second is an emulator of the hardware they were using 50+ years ago (teletypes).

Collapse
 
t4inha profile image
Anderson Bosa

Interesting Matthieu! Thanks for sharing!

Just to clarify, this is the teletype (en.wikipedia.org/wiki/Teleprinter) that you mentioned?

Collapse
 
phantas0s profile image
Matthieu Cneude • Edited

Yes that's it. It was used in the 19th century to send messages, and since it was still widely used in the 60s, they plugged it to computers to send some input. Later they connected the output to a video terminal (cheaper than printing paper).

The terminal emulator is the emulation of both the teletype and the video terminal. It's a mess how it works under the hood because of this legacy. The shell itself is only the layer around the kernel which allows you to interpret your commands and communicate with the kernel.