TTY0 テキストのコピー

TTY0 テキストのコピー

TTY1最後のGUIセッションが停止した理由に関する手がかりを提供できると思われるいくつかの出力があります(CtrlAltBackspace端末に戻ってGUIを再ロードできます)。

しかし、画面上のテキストをコピーする方法が見つからないようですが(希望)、まだファイル/デバイスから消えていません。どんな提案がありますか?

ベストアンサー1

/dev/tty0Linuxでは、現在の仮想端末であり、/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 <[email protected]>)
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
[...]

おすすめ記事