0

Is the term TTY only a metaphor in modern day Linux systems referring to any CLI environment (direct as in GUI-less distros, and/or indirect as a CLI window in GUI-based distros).

marked as duplicate by jasonwryan, Stephen Rauch, G-Man, Wildcard, DarkHeart Nov 14 '17 at 6:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    The accepted solution gives a description of what a tty is which I think answers your question. Also, I didn't down-vote you and I don't think this question deserved to be down-voted. – igal Nov 14 '17 at 2:57
  • 2
    This is a worthy question. I found these terms extremely confusing when I first bumped into them; they're not at all easy to disentangle. However, I agree with @igal; this question is reasonably well addressed at unix.stackexchange.com/a/4132/135943. – Wildcard Nov 14 '17 at 6:12
  • 1
    Using nano absolutely requires a tty; the point is that nano is not a CLI application; it's a character-cell application. Character-cell applications (such as nano or vim or aptitude or mc or lynx) by their very nature need a tty, because they need to have a bidimensional array of cells where to place the characters. A command-line application, such as ls or bc or find works fine without a tty. The three standard streams have nothing to do with terminals. – AlexP Nov 14 '17 at 8:19
  • 1
    I don't see why the duplicate's answer doesn't address this. It clearly explains that a tty is a type of device file. I know it's a lot of information, but it should answer all your questions if you read through it carefully. – terdon Nov 14 '17 at 11:07
  • 1
    Then I don't see any reason to reopen. Your question has been answered and anyone else with the same question will be redirected to that very comprehensive answer and have their question answered. – terdon Nov 14 '17 at 11:14
2

It is a metaphor in the sense that the name is coming from the TeleType console writer:

enter image description here

...which was essentially an ancient electromechanical writing machine. It was used as the keyboard of some ancient unix big computer.

Today, the few remaining parts of them are in IT museums. But the console character devices still named as /dev/tty or similarly.

Its current meaning is roughly "kernel-driven character console".

Many character environments don't need a tty device for a functioning CLUI (Command Line User Interface), and may work with or without one.

Not the answer you're looking for? Browse other questions tagged or ask your own question.