Fundamentals 2 min read
Understanding Linux Terminal Types: Console, TTY, Serial, PTY, and Virtual
This article explains the five main Linux terminal types—console, controlling, serial, pseudo, and virtual—detailing their device files, typical use cases, and how they interact with the kernel and user applications.
MaGe Linux Operations
MaGe Linux Operations
Linux system terminals include console terminal, controlling terminal, serial terminal, pseudo terminal, and virtual terminal.
Console terminal (/dev/console).
在Unix系统中,计算机显示器通常被称为控制台终端。
Console与虚拟终端相关联,内核将信息送到控制台终端上(/dev/console),通过与console相关联的虚拟终端将信息显示到屏幕上。Controlling terminal (/dev/tty).
控制终端是一个应用程序的概念。对于登录shell来讲,/dev/tty就是我们使用的终端。3、Serial terminal (/dev/ttyS#)
串行端口终端(Serial Port Terminal)是使用计算机串行端口连接的终端设备。这些串行端口对应的设备文件名是在Linux的/dev/ttyS#。4、Pseudo terminal (/dev/pty/#)
伪终端功能类似于终端的设备,但它不与任何终端硬件连接。伪终端通常为通过x-window、SSH或telnet登录到linux主机上所使用的终端。5、Virtual terminal (/dev/tty#)
虚拟终端为Linux通过Ctrl-Alt-F[1-6]打开的终端。Original Source
Signed-in readers can open the original source through BestHub's protected redirect.
Republication Notice
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Reader feedback
How this landed with the community
Rate this article
Was this worth your time?
Discussion
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
