小编Arm*_*enB的帖子

为什么会有这么多虚拟终端设备?

我一直在阅读Advanced Linux Programming 一书,它提到了虚拟终端,如果我理解正确的话,它是 Linux 特定的功能(不在 Unix 中),允许在非 X11 系统中使用多个登录控制台。您可以通过按 ALT-F2 来创建虚拟终端。我正在运行 Linux Mint 并在我的 /dev 文件夹中,尽管我看到许多 tty 设备,但我不知道它们的用途。这是grepped的输出:

crw-rw-rw-  1 root tty       5,   0 Jan  2 19:45 tty
crw--w----  1 root tty       4,   0 Jan  2 19:10 tty0
crw-rw----  1 root tty       4,   1 Jan  2 19:10 tty1
crw--w----  1 root tty       4,  10 Jan  2 19:10 tty10
crw--w----  1 root tty       4,  11 Jan  2 19:10 tty11
crw--w----  1 root tty       4,  12 Jan  2 19:10 …
Run Code Online (Sandbox Code Playgroud)

linux tty devices console

12
推荐指数
1
解决办法
5374
查看次数

标签 统计

console ×1

devices ×1

linux ×1

tty ×1