在终端中选择文本而不使用鼠标 [英] Selecting text in terminal without using the mouse

查看:200
本文介绍了在终端中选择文本而不使用鼠标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在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 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆