Home > Article > Operation and Maintenance > What is the linux command console called?
The Linux command console is called "console"; the terminal that displays system messages is called console. In Linux, all virtual terminals are consoles by default and can display system messages; in addition, for those specially used The program that simulates the terminal device can also be called "Console".
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is the name of the Linux command console?
Console.
What is a console?
The terminal that displays system messages is called a console. By default in Linux, all virtual terminals are consoles and can display system messages.
In addition, for those programs specifically used to simulate terminal devices, we can also call them consoles. Software such as gnome-terminal, urxvt, mlterm, xterm, etc. can all be called consoles.
Summary: The console is a special case of the terminal, a true subset of the terminal, it is a virtual terminal,
The difference between the terminal and the console
Physical terminal: The collective name for the monitor, keyboard and mouse directly connected to the host. In actual rack-mounted server deployment, multiple servers generally share a set of terminals, referred to as KVM (keyboard, video display, mouse)
Virtual terminal (tty): attached to the physical terminal, Virtually implemented in software, CentOS enables 6 virtual terminals by default, which can be switched through shortcut keys. The switching method is: Ctrl-Alt-F[1--6], and the corresponding file is /dev/tty#.
You can view the current virtual terminal number through the tty command. tty is the abbreviation of teletype writer.
Pseudo terminal (pty): two application scenarios,
(1) The first command line interface opened under the graphical interface, the one we often open using Ctrl Alt T is actually A pseudo-terminal
(2) Second, a command line interface opened remotely based on the ssh protocol or telnet protocol is the most commonly used method by operation and maintenance engineers to connect to the server. pts (pseudo-terminal slave) is the implementation method of pty.
Summarize three points of view:
(1) The console is a proper subset of the terminal;
(2) tty2-tty6, these five The black interface is a virtual terminal, which is a real console. The five virtual terminals at this time are called consoles;
(3) The thing opened by Ctrl Alt T under the desktop It is a pseudo terminal that is created remotely through Telnet or SSH;
The difference between the console and the terminal has been completely diluted in Linux.
Recommended learning: "linux video tutorial"
The above is the detailed content of What is the linux command console called?. For more information, please follow other related articles on the PHP Chinese website!