不使用鼠标在终端中选择文本 [英] Selecting text in terminal without using the mouse
问题描述
如果我在 Linux 的终端窗口中工作,是否可以使用键盘快捷键来选择前几行显示的输出?如果我用鼠标选择某些东西,我可以使用 Ctrl + Shift + C 进行复制,但是有没有办法在不使用鼠标的情况下进行选择全部.我在 Ubuntu 桌面中使用 Gnome 终端或 KDE konsole.
If I'm working in a terminal window in Linux, is there a keyboard shortcut I can use to select output displayed on previous lines? If I select something with the mouse I can copy using Ctrl + Shift + C, but is there a way to select without using the mouse at all. I'm using either Gnome terminal or KDE konsole in Ubuntu desktop.
例如,我经常需要从 mysql 查询中复制结果,然后用谷歌搜索它们.
For example I often need to copy results from a mysql query and then google them.
推荐答案
您可以使用 screen
应用程序并使用 Ctrl+a进入复制模式kbd>, Esc.用 Space 开始选择文本,用 Space 结束选择文本.使用 Ctrl+a、]
You can use the screen
application and enter copy mode with Ctrl+a, Esc. Start selecting text with Space and end selecting text with Space. Insert text with Ctrl+a, ]
这篇关于不使用鼠标在终端中选择文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!