Terminal Emulator and Virtual Terminal

Terminal Emulators

When using a graphical user interface, we need another program called a terminal emulator to interact with the shell. If we look through our desktop menus, we will probably find one. KDE uses konsole and GNOME uses gnome-terminal, though it’s likely called simply “terminal” on our menu. There are a number of other terminal emulators available for Linux, but they all basically do the same thing; give us access to the shell. You will probably develop a preference for one or another based on the number of bells and whistles it has.

The Console Behind The Curtain

Even if we have no terminal emulator running, several terminal sessions continue to run behind the graphical desktop. Called virtual terminals or virtual consoles,
these sessions can be accessed on most Linux distributions by pressing Ctrl+Alt+F1 through Ctrl+Alt+F6. When a session is accessed, it presents a login prompt into which we can enter our username and password. To switch from one virtual console to another, press Alt and F1-F6. To return to the graphical desktop, press Alt-F7.

练习

tom登陆系统,Ctrl+Alt+F2 切换到tty2 jerry登陆,Ctrl+Alt+F3切换到tty3 spike登陆,startx启动图形窗口,打开terminal,最后tuffy用putty登陆。

login as: tuffy
tuffy@192.168.1.128's password:
Last login: Thu Mar 15 15:13:04 2018
[tuffy@localhost ~]$ who
tom      tty1         2018-03-15 15:18
jerry    tty2         2018-03-15 15:18
spike    tty3         2018-03-15 15:19
spike    pts/0        2018-03-15 15:21 (:0)
tuffy    pts/1        2018-03-15 15:23 (192.168.1.123)
[tuffy@localhost ~]$ loginctl
   SESSION        UID USER             SEAT
         3       1002 jerry            seat0
         7       1004 tuffy
         5       1003 spike            seat0
         2       1001 tom              seat0

4 sessions listed.
[tuffy@localhost ~]$ 

tty(teletpye)是virtual terminal or virtual console ,pts(pseudo terminal)是 termianl emulator。

http://linuxcommand.org/index.php
http://billie66.github.io/TLCL/book/index.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值