将终端会话转储到文件? [英] Dump terminal session to file?
本文介绍了将终端会话转储到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我运行具有无限滚动行历史记录的gnome-terminal
我想将可以在终端中看到的文本转储到文件并进行解析
I run gnome-terminal with unlimited scroll-line history
I want to dump text I can see in terminal to file and parse it
有办法吗?
推荐答案
如果您想要终端历史记录的全部内容:
If you want the whole contents of the terminal history:
在gnome终端菜单中,依次编辑>全选,然后编辑>复制. (或使用您喜欢的键盘快捷键进行复制.)
In the gnome-terminal menu, Edit > Select All and then Edit > Copy. (Or use your favorite keyboard shortcut for the copy.)
然后粘贴到任何地方.
如果只需要一部分历史记录,请用鼠标选择,然后复制.
If you want just part of the history, select with your mouse and then copy.
这篇关于将终端会话转储到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文