use*_*001 4 linux tty clipboard
我有一些输出TTY1
,我认为可能会提供有关为什么我的最后一个 GUI 会话冻结的线索(CtrlAltBackspace能够让我回到终端并重新加载 GUI)。
但是,我似乎无法找到一种复制屏幕上文本的方法,但是(我希望)还没有从文件/设备中消失。有什么建议?
/dev/tty0
在 Linux 上是当前的虚拟终端,而/dev/tty1
, /dev/tty2
... 是单个虚拟终端。
您可以通过/dev/vcs1
, /dev/vcs2
... 设备或当前的/dev/vcs
(有时/dev/vcs0
)获取每个内容的转储
# cp /dev/vcs1 some-file
# stty size < /dev/tty1
67 240
# fold -w 240 < some-file | sed 's/ *$//'
[...]
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-4-amd64 x86_64 Debian
Current Operating System: Linux sc 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10-2-amd64 root=/dev/mapper/linux-debian64 ro quiet
Build Date: 17 April 2013 10:22:47AM
xorg-server 2:1.12.4-6 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon Sep 2 10:19:44 2013
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
resize called 1920 1080
[...]
Run Code Online (Sandbox Code Playgroud)