Min*_*mus 9 command-line output 12.10
在终端中,命令的输出太长。但是当我向后滚动时,我看到它被截断了,只显示了最后一部分。在 Gnome-Terminal 和 Konsole 中,我遇到了这个问题。在 xterm 中没有这样的问题,但我无法在 xterm 中复制输出。
我怎样才能得到完整的输出?
Zel*_*fan 10
您可以将输出发送到一个文件:(您要运行的命令command > file.txt在哪里command以及file.txt要保存到的文件),然后使用gedit file.txt.
小智 8
使用 xclip
cat long.output | xclip -sel clip
Run Code Online (Sandbox Code Playgroud)
如果没有安装,你可以做
sudo apt-get install xclip
Run Code Online (Sandbox Code Playgroud)