Linux终端 terminal

终端 一个可以进行人机交互的界面

物理终端

  • 设备终端:键盘、鼠标、显示器

终端类型

  • 控制台终端: /dev/console
  • 串行终端:/dev/ttyS#
  • 虚拟终端:tty:teletypewriters, /dev/tty#,tty 可有n个,Ctrl+Alt+F#
  • 图形终端:startx, xwindows
  • CentOS 6: Ctrl + Alt + F7
  • CentOS 7: 在哪个终端启动,即位于哪个虚拟终端
  • 伪终端:pty:pseudo-tty , /dev/pts/# 如:SSH远程连接 虚拟终端

虚拟终端软件

  • xshell
  • MobaXterm
  • SecureCRT
  • Putty
  • FinalShell

查看当前的终端设备

tty 命令可以查看当前所在终端

[root@C8 ~]# tty
/dev/pts/0

Linux命令
who 查看当前登录用户

[root@VM_163_113_centos ~]# who
root     pts/0        2020-03-31 20:14 (117.183.*.*)
root     pts/1        2020-03-31 17:07 (115.171.*.*)
root     pts/3        2020-03-31 20:25 (117.183.*.*)
root     pts/5        2020-03-31 21:44 (115.171.*.*)

猜你喜欢

转载自www.cnblogs.com/bpzblog/p/12608869.html