CentOS terminal device in the following categories:
- Terminal apparatus: keyboard, mouse, display, etc.
- Physical terminal: console console (/ dev / console)
- Serial terminal: ttyS (/ dev / ttyS #)
- Virtual Terminal: tty (teletypewriters, / dev / tty # # is 1-6) tty may have n, + Alt + F [1-6] for switching Ctrl
- Graphic terminal: startx, xwindows. Ctrl + Alt + F7 can be switched on to a graphics terminal CentOS6 on the graphic terminal in which virtual terminal CentOS7 i.e. starting on which the terminal is located.
- Pseudo-terminal: pty (pseudo-tty, / dev / pts / #). pty, such as SSH remote terminal connection.
Tty terminal device can be used to view the current command in CentOS
In the graphical interface terminal Teminal
[root@XX ~]# tty /dev/pts/0
In the character-based interface
[root@XX ~]# tty
/dev/tty2
chvt command to switch to either a terminal of the terminal 1-6
Usage is chvt n (1-6)
startx command to start the graphical interface, provided you with a graphics terminal.
Usage is startx