ubuntu 键盘快捷键_如何使用键盘快捷键在Ubuntu中提高生产力

ubuntu 键盘快捷键

ubuntu 键盘快捷键

Backlit computer keyboard
diceareawesome1/Shutterstock.comdiceareawesome1 / Shutterstock.com

We’re always looking for new ways to speed up everyday tasks in Ubuntu. We’ll show you some keyboard shortcuts you might not have known about, and show you how to make your own custom shortcuts.

我们一直在寻找新的方法来加快Ubuntu中的日常任务。 我们将向您展示一些您可能不了解的键盘快捷键,并向您展示如何制作自己的自定义快捷键。

当键盘统治地球 (When Keyboards Ruled the Earth)

Unix—the spiritual predecessor of Linux—predates graphical user interfaces. The keyboard was the only game in town, so it was typing all the way. No surprise then, that functionality was soon introduced for the benefit of the computer operators of yesteryear.

Unix(Linux的精神前身)早于图形用户界面。 键盘是镇上唯一的游戏,因此一直在打字。 毫不奇怪,该功能很快就为过去的计算机操作员带来了好处。

Features such as the history command and aliases started to appear in Unix shells. Their purpose was to increase productivity by reducing repetition and removing the need to remember obscure sequences of commands.

history命令和别名之类的功能开始出现在Unix shell中。 他们的目的是通过减少重复和消除记住晦涩的命令序列来提高生产率。

Keyboard shortcuts boost efficiency, too. These are neat combinations of keystrokes that trigger some useful action for us. They don’t type text, they cause something to happen.

键盘快捷键也可以提高效率。 这些是击键的巧妙组合,可为我们触发一些有用的操作。 他们不输入文字,他们导致某些事情发生

We’re going to look at some of the more useful Ubuntu keyboard shortcuts, both for the terminal and on Ubuntu’s GNOME Shell desktop. We’ll also demonstrate how to create your own shortcuts by applying the keystrokes of your choice to the action you want to perform. We tested this keyboard shortcuts on Ubuntu 19.04 Disco Dingo.

我们将在终端和Ubuntu的GNOME Shell桌面上查看一些更有用的Ubuntu键盘快捷键。 我们还将演示如何通过将您选择的按键应用于您要执行的操作来创建自己的快捷方式。 我们在Ubuntu 19.04 Disco Dingo上测试了此键盘快捷键。

超级什么? (Super What?)

The Super key is the one between the Ctrl and Alt keys toward the bottom left corner of the keyboard. On most keyboards, this will have a Windows symbol on it—in other words, “Super” is an operating system-neutral name for the Windows key. We’ll be making good use of the Super key.

超级键是键盘左下角的CtrlAlt键之间的键。 在大多数键盘上,其上将带有Windows符号-换句话说,“超级”是Windows键的与操作系统无关的名称。 我们将充分利用Super键。

终端的键盘快捷键 (Keyboard Shortcuts for the Terminal)

Terminal app on a Ubuntu 19.04 desktop

The following keyboard shortcuts work in GNOME Terminal—Ubuntu’s built-in terminal application. If they don’t seem to work, click menu > Preferences > Shortcuts in a Terminal window and ensure “Enable Shortcuts” is checked.

以下键盘快捷键在GNOME终端(Ubuntu的内置终端应用程序)中有效。 如果它们似乎不起作用,请在“终端”窗口中单击菜单>首选项>快捷方式,并确保选中“启用快捷方式”。

Use these keyboard shortcuts to speed up your Linux command line experience:

使用以下键盘快捷键可以加快Linux命令行体验:

打开和关闭终端窗口 (Opening and Closing Terminal Windows)

  • Ctrl+Alt+T  or Shift+Ctrl+N: Open a terminal window.

    Ctrl + Alt + TShift + Ctrl + N 打开一个终端窗口。

  • Shift+Ctrl+Q: Close the current terminal window

    Shift + Ctrl + Q:关闭当前终端窗口

终端窗口选项卡(Terminal Window Tabs)

  • Shift+Ctrl+T: Open a new tab.

    Shift + Ctrl + T:打开一个新标签。

  • Shift+Ctrl+W Close the current tab.

    Shift + Ctrl + W关闭当前选项卡。

  • Ctrl+Page Up: Switch to the previous tab.

    Ctrl + Page Up :切换到上一个选项卡。

  • Ctrl+Page Down: Switch to the next tab.

    Ctrl + Page Down:切换到下一个选项卡。

  • Shift+Ctrl+Page Up: Move to the tab to the left.

    Shift + Ctrl +向上翻页:移到左侧的标签。

  • Shift+Ctrl+Page Down: Move to the tab to the right.

    Shift + Ctrl + Page Down :移至右侧的标签。

  • Alt+1: Switch to Tab 1.

    Alt + 1 :切换到标签1。

  • Alt+2: Switch to Tab 2.

    Alt + 2 :切换到标签2。

  • Alt+3: Switch to Tab 3, and so on, up to Alt+9 to switch to tab 9

    Alt + 3 :切换到选项卡3,依此类推,直到Alt + 9切换到选项卡9

  • Alt+0: Switch to Tab 10.

    Alt + 0 :切换至标签10。

命令行编辑 (Command Line Editing)

  • Shift+Ctrl+C: Copy the highlighted text. You must use the mouse to highlight the text.

    Shift + Ctrl + C:复制突出显示的文本。 您必须使用鼠标突出显示文本。

  • Shift+Ctrl+V: Paste the copied text in a terminal window. If you are pasting into an application such as an editor, Ctrl+V will probably work.

    Shift + Ctrl + V:将复制的文本粘贴到终端窗口中。 如果要粘贴到诸如编辑器之类的应用程序中,则Ctrl + V可能会起作用。

  • Ctrl+A or Home: Go to the start of a command line.

    Ctrl + AHome :转到命令行的开头。

  • Ctrl+E or End: Go to the end of a command line.

    Ctrl + EEnd :转到命令行的末尾。

  • Alt+B or Ctrl+Left Arrow: Move the cursor backward one word.

    Alt + BCtrl +向左箭头:将光标向后移动一个单词。

  • Ctrl+B or Left Arrow: Move the cursor backward one character.

    Ctrl + B向左箭头:将光标向后移动一个字符。

  • Alt+F or Ctrl+Right Arrow: Move the cursor forward one word.

    Alt + FCtrl +向右键:将光标向前移动一个单词。

  • Ctrl+F or Right Arrow: Move the cursor forward one character.

    Ctrl + F向右箭头:将光标向前移动一个字符。

  • Ctrl+XX: Hop between the current position of the cursor and the start of the line. Hold down Ctrl and Press X twice, quickly.

    Ctrl + XX :在光标的当前位置和行的开头之间跳转。 按住Ctrl并快速按两次X。

  • Ctrl+D or Delete: Delete the character under the cursor.

    Ctrl + DDelete :删除光标下方的字符。

  • Ctrl+U: Delete all characters before the cursor. Ctrl+E, Ctrl+U will delete the entire line.

    Ctrl + U :删除光标之前的所有字符。 Ctrl + ECtrl + U将删除整行。

  • Alt+D: Delete all characters after the cursor to the end of the line.

    ALT + d:光标移动到行的结尾删除所有字符。

  • Ctrl+H or Backspace: Delete the character before the cursor.

    Ctrl + HBackspace :删除光标之前的字符。

控制终端显示 (Controlling The Terminal Display)

  • Ctrl+L: Clear the terminal window. Same as typing clear.

    Ctrl + L :清除终端窗口。 与键入clear相同。

  • Ctrl+S: Stop scrolling output. Freezes the output from a  program, but allows the program to continue to run in the background.

    Ctrl + S :停止滚动输出。 冻结程序的输出,但允许程序继续在后台运行。

  • Ctrl+Q: Restart scrolling output if it has been stopped with Ctrl+S.

    Ctrl + Q :如果已使用Ctrl + S停止滚动输出,则重新开始滚动输出。

缩放终端窗口 (Zooming the Terminal Window)

  • Shift+Ctrl++ (that is, Shift, Ctrl and +, “the plus sign”): Zoom in.

    Shift + Ctrl ++ (即ShiftCtrl+, “加号”):放大。

  • Ctrl+- (that is, Shift, Ctrl and -, “the minus sign): Zoom out.

    Ctrl +- (即ShiftCtrl-,“减号 ):缩小。

  • F11: Full screen.

    F11 :全屏。

  • Ctrl+0 (that is, Ctrl and 0, “zero”): Return to normal size.

    Ctrl + 0 (即Ctrl0 ,“零”):返回正常大小。

在终端窗口中搜索 (Searching in a Terminal Window)

  • Shift+Ctrl+F: Find.

    Shift + Ctrl + F键:查找。

  • Shift+Ctrl+G: Find the next occurrence of the search term.

    Shift + Ctrl + G :查找搜索词的下一个匹配项。

  • Shift+Ctrl+H: Find the previous occurrence of the search term.

    Shift + Ctrl + H :查找搜索词的上一个匹配项。

  • Shift+Ctrl+J: Clear text highlights.

    Shift + Ctrl + J :清除文本突出显示。

For more keyboard shortcuts, check out our list of Bash shortcuts—these work in any Linux terminal, even outside of the desktop.

有关更多键盘快捷键的信息,请查看我们的Bash快捷键列表,这些快捷键可以在任何Linux终端中使用,甚至可以在桌面之外使用。

桌面键盘快捷键 (Desktop Keyboard Shortcuts)

GNOME Shell desktop on Ubuntu 19.04

Ubuntu’s GNOME desktop environment offers many different keyboard shortcuts for navigating your desktop and working with windows, too. If you’re still doing all these things the long mouse-driven way, stop!

Ubuntu的GNOME桌面环境提供了许多不同的键盘快捷键,用于浏览桌面和使用Windows。 如果您仍然要以鼠标驱动的方式进行所有这些操作,请停止!

  • Alt+F2: Run a command. Opens the “Enter a Command” dialog. You can use this to launch applications, run commands, and run scripts.

    Alt + F2 :运行命令。 打开“输入命令”对话框。 您可以使用它来启动应用程序,运行命令和运行脚本。

Enter a command dialog
  • Super+D: Minimizes all windows and shows the desktop.

    Super + D :最小化所有窗口并显示桌面。

  • Super+Tab or Alt+Tab: Switch applications.

    Super + TabAlt + Tab :切换应用程序。

  • Ctrl+Alt+Up Arrow: Move to the previous workspace.

    Ctrl + Alt +向上箭头:移至上一个工作区。

  • Ctrl+Alt+Down Arrow: Move to the next workspace.

    Ctrl + Alt +向下箭头:移至下一个工作区。

  • Shift+Ctrl+Alt+Up Arrow: Move an application to the previous workspace.

    Shift + Ctrl + Alt +向上箭头:将应用程序移动到上一个工作区。

  • Shift+Ctrl+Alt+Down Arrow: Move an application to the next workspace.

    Shift + Ctrl + Alt +向下箭头:将应用程序移动到下一个工作区。

  • Super+Left Arrow: Snap the current application so that it takes up the left side of the screen.

    Super + Left Arrow :捕捉当前应用程序,使其占据屏幕的左侧。

  • Super+Right Arrow: Snap the current application so that it takes up the right side of the screen.

    Super + Right箭头:对齐当前应用程序,使其占据屏幕的右侧。

  • Super+Up Arrow: Maximize the current application.

    Super +向上箭头:最大化当前应用程序。

  • Super+Down Arrow: Restore down (that is, reduce but don’t minimize) the current application.

    Super + Down箭头:还原(即减少但不要最小化)当前应用程序。

  • Super+M or Super+V: Display the notifications are and Calendar.

    Super + MSuper + V :显示通知为和日历。

  • Super+Space: Switches between input sources. For example, if you have a laptop with a US keyboard and you also use it with an external UK keyboard, you’d find this useful.

    Super + Space :在输入源之间切换。 例如,如果您有一台带有美式键盘的笔记本电脑,并且还与一台外接式英国键盘一起使用,那么您会发现这很有用。

  • Ctrl+Alt+L: Locks the screen so that you need to log back in. Makes it safe to leave your computer unattended.

    Ctrl + Alt + L :锁定屏幕,以便您需要重新登录。可以安全地使计算机无人看管。

  • Ctrl+Alt+Del: Logs you out of the current session.

    Ctrl + Alt + Del :使您退出当前会话。

通用键盘快捷键 (Common Application Keyboard Shortcuts)

Many applications follow certain conventions with keyboard shortcuts. These should work in most modern applications.

许多应用程序使用键盘快捷键遵循某些约定。 这些应该可以在大多数现代应用程序中工作。

  • Ctrl+Q or Ctrl+W or Alt+F4: Close application.

    Ctrl + QCtrl + WAlt + F4 :关闭应用程序。

  • Ctrl+P: Open the Print dialog.

    Ctrl + P :打开“打印”对话框。

  • Ctrl+S: Save the current file.

    Ctrl + S :保存当前文件。

  • Shift+Ctrl+S: Open the File Save dialog.

    Shift + Ctrl + S :打开“文件保存”对话框。

  • Ctrl+O: Open the Open File dialog.

    Ctrl + O :打开“打开文件”对话框。

如何创建自定义键盘快捷键 (How to Create Custom Keyboard Shortcuts)

You can create your own keyboard shortcuts and attach them to some action you wish to have carried out when that keyboard shortcut is used.

您可以创建自己的键盘快捷键,并将它们附加到使用该键盘快捷键时希望执行的某些操作。

To create your own keyboard shortcut, open the “System Menu” and click on the “Settings” icon:

要创建自己的键盘快捷方式,请打开“系统菜单”,然后单击“设置”图标:

system menu with settings icon highlghited

In the “Settings” dialog, click on the “Devices” menu entry. This is near the bottom of the sidebar.

在“设置”对话框中,单击“设备”菜单项。 这是在侧边栏的底部附近。

devices entry in the settings dialog

Click on the “Keyboard” menu entry.

单击“键盘”菜单项。

keyboard entry in the settings dialog

Scroll down through the list of existing keyboard shortcuts, and click the “+” button at the bottom of the list.

向下滚动现有的键盘快捷键列表,然后单击列表底部的“ +”按钮。

Plus button at the bottom of the shortcut list

In the “Add Custom Shortcut” dialog, give your new shortcut a descriptive name in the “Name” field.

在“添加自定义快捷方式”对话框中,在“名称”字段中为新的快捷方式指定一个描述性名称。

In the “Command” field, provide the command that you wish to have executed when your shortcut is used.

在“命令”字段中,提供使用快捷方式时希望执行的命令。

In this example, we’re going to launch Nautilus. We need to type the command that will launch Nautilus, which is “nautilus“.

在此示例中,我们将启动Nautilus。 我们需要输入将启动Nautilus的命令,即“ nautilus ”。

add custom shortcut dialog

When you have filled in the “Name” and “Command” fields, click the “Set Shortcut” button. When you see the “Enter the New Shortcut” prompt, press the keys you wish to use for the shortcut.

填写“名称”和“命令”字段后,单击“设置快捷方式”按钮。 当您看到“输入新快捷方式”提示时,请按一下您希望用于快捷方式的键。

enter the new shortcut prompt

In our example, we will press Super+E.

在我们的示例中,我们将按Super + E。

custom shortcut dialog with all fields completed

When all fields are completed, click the green “Add” button. This will save your shortcut and add it to the list of existing shortcuts.

完成所有字段后,单击绿色的“添加”按钮。 这将保存您的快捷方式并将其添加到现有快捷方式列表中。

If you scroll down through the list of existing shortcuts you’ll see a new section titled “Custom Shortcuts”. Your new shortcut will be listed in that section.

如果您在现有快捷方式列表中向下滚动,则会看到一个名为“自定义快捷方式”的新部分。 您的新快捷方式将在该部分列出。

New shortcut showing in the Custom Shortcuts list

And now, pressing Super+E will launch Nautilus. Close the window, and test out your shortcut! It’ll become second nature in no time.

现在,按Super + E将启动Nautilus。 关闭窗口,然后测试您的快捷方式! 它将立即成为第二天性。

While you’re in the Keyboard Shortcuts window, be sure to look through the list and change shortcuts as you see fit! If your keyboard doesn’t have media keys, for example, you can assign one of the F-keys to volume up and volume down.

在“键盘快捷键”窗口中时,请务必浏览列表并根据需要更改快捷键! 例如,如果您的键盘没有媒体键,则可以将F键之一分配给调高音量和调低音量。

Custom shortcuts aren’t just for opening your favorite programs quickly. You can write a short script to automate some common task and bind that script to a keystroke! The possibilities are endless.

自定义快捷键不仅用于快速打开您喜欢的程序。 您可以编写一个简短的脚本来自动执行一些常见任务,并将该脚本绑定到按键! 可能性是无止境。

使用快捷方式 (Using Your Shortcuts)

Keyboard shortcuts can leave you in a quandary. When you start using them, they slow you down! Because they are unfamiliar and they take a moment to look up, they can feel like an impediment more than an accelerator.

键盘快捷键可能会让您陷入困境。 当您开始使用它们时,它们会使您减速! 因为它们不熟悉,并且花了一些时间来查找,所以它们比加速器更像障碍。

Don’t be disheartened, persevere. There’s no instant gratification here. But once you have them locked into your muscle memory, you’re up and running.

不要灰心,坚持下去。 这里没有即时的满足感。 但是,一旦将它们锁定在您的肌肉记忆中,就可以启动并运行。

Pick a handful and start to use those. When they become second nature, add a few more. Then repeat. You’ll wonder how you ever managed without them. It’s like learning the Linux terminal.

选择一些并开始使用它们。 当它们成为第二天性时,再添加一些。 然后重复。 您会想知道如果没有它们,您将如何管理。 这就像学习Linux终端。

翻译自: https://www.howtogeek.com/howto/41418/how-to-be-more-productive-in-ubuntu-using-keyboard-shortcuts/

ubuntu 键盘快捷键

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/281131.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Ubuntu 桌面系统升级

本文介绍 Ubuntu 桌面系统升级的两种方式,通过 UI 或命令行的方式,演示为 20.04 升级为 22.04。并介绍了 windows 的 Linux 子系统 wsl 的升级注意事项。背景之前在学习 ROS2 时,安装 ros-humble-desktop 出现依赖错误:无法修正错…

onlyoffice修改左上角的logo

原文同步自作者博客:https://www.daxueyiwu.com/post/770 1. 商用版config里配置就能修改logo "editorConfig": {"customization": {"logo": {"image": "https://example.com/logo.png","imageEmbedded&q…

pidgin qq_Pidgin入门指南,通用消息客户端

pidgin qqIf you find chatting with multiple chat clients troublesome, then Pidgin is the tool for you. In today’s article, we’ll show you how to connect to popular chat networks, encrypt your conversations, and render mathematical formula in Pidgin. 如果…

记一次 .NET 某自动化采集软件 崩溃分析

一:背景 1.讲故事前段时间有位朋友找到我,说他的程序在客户的机器上跑着跑着会出现偶发卡死,然后就崩掉了,但在本地怎么也没复现,dump也抓到了,让我帮忙看下到底怎么回事,其实崩溃类的dump也有简…

如何在 .NET MAUI 中加载 json 文件?

引言:按.NET core传统方式添加 AddJsonFile("appsettings.json") 在windows平台和ssr工作正常,但是在 ios 和 android 无法用这种方式,因为资源生成方式不一样. 使用内置资源方式不够灵活而且 ios 平台会提示不能复制 json 文件到目录,于是进行了几天的研究,终于能正…

SSH整合注解版(Spring+Struts2+Hibernate)

整体架构&#xff1a; pom.xml 引入maven节点&#xff1a; <dependencies><!--单测--><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.3</version><scope>test</scope><…

定时插座动一下就断_使用插座定时器在某些时候自动将您的Amazon Echo静音

定时插座动一下就断The Amazon Echo is an always-listening voice-controlled virtual assistant, but if there are times you’d rather not listen (or be listened to) by the Echo, here’s how to automatically mute it at certain times of the day. Amazon Echo是一个…

周末读书:《红楼梦》

【周末读书】| 作者/Edison大家好&#xff0c;我是Edison。古人曾说“开谈不说红楼梦&#xff0c;读尽诗书也枉然”&#xff0c;刚好最近我爸开始在阅读《红楼梦》&#xff0c;我想起当年看了两遍《红楼梦》原著和一遍87版《红楼梦》电视剧的场景。本文是我首发于2018年的一篇读…

onlyoffice启用HTTPS

原文同步自作者博客&#xff1a;https://www.daxueyiwu.com/post/765 HTTPS需要使用SSL证书&#xff0c;可以自己签发也可以用ca机构签发的&#xff0c;加密效果相同。 生成证书&#xff1a; 创建私钥 openssl genrsa -out onlyoffice.key 2048 创建CSR openssl req -new -k…

Oracle-逻辑体系结构

这里指数据文件的逻辑体系结构&#xff0c;包括1.表空间(TABLESPACE) 2.段(SEGMENT) 3.区(EXTENT) 4.块(BLOCK) 数据库(Database)由若干表空间(TABLESPACE)组成&#xff0c;表空间由若干段(SEGMENT)组成&#xff0c;段由若干区(EXTENT)组成&#xff0c;区由若干块(BLOCK)组成…

chromebook刷机_如何从Chromebook上的APK侧面加载Android应用

chromebook刷机Chromebooks can now download and install Android apps from Google Play, and it works pretty well. But not every Android app is available in Google Play. Some apps are available from outside Google Play as APK files, and you can install them o…

修改onlyoffice存储为手动存储关闭浏览器时不进行保存

原文同步自作者博客&#xff1a;https://www.daxueyiwu.com/post/704 相关官方API地址&#xff1a; 文件保存 回调处理程序 配置-编辑-定制-自动保存 配置-编辑-定制-forcesave 需要将: config.editorConfig.customization.forcesave改为true, 并且config.editorConfig.…

如何使用NVIDIA ShadowPlay录制PC游戏

NVIDIA’s ShadowPlay, now known as NVIDIA Share, offers easy gameplay recording, live streaming, and even an FPS counter overlay. It can automatically record gameplay in the background–just on the PlayStation 4 and Xbox One–or only record gameplay when y…

Java流

流分类 字节流字符流输入流InputStreamReader输出流OutputStream WriterInputStream:BufferedInputStream、DataInputStream、ObjectInputStreamOutputStream:BufferedOutputStream、DataOutputStream、ObjectOutputStream、PrintStream 标准流: System.in 、Syst…

Win7安装OnlyOffice(不使用Docker)

原文同步自作者博客&#xff1a;https://www.daxueyiwu.com/post/741 1、安装准备 &#xff08;1&#xff09;安装Elang&#xff1a; 【注意事项】 a)Elang是为了给RabbitMQ使用的&#xff0c;因此在安装Elang之前应确定RabbitMQ的版本及其所需的Elang版本。RabbitMQ的地址…

geek_享受How-To Geek用户样式脚本的好处

geekMost people may not be aware of it but there are two user style scripts that have been created just for use with the How-To Geek website. If you are curious then join us as we look at these two scripts at work. 大多数人可能不知道它&#xff0c;但是已经创…

Memcached 在linux上安装笔记

第一种yum 方式安装 Memcached 支持许多平台&#xff1a;Linux、FreeBSD、Solaris、Mac OS&#xff0c;也可以安装在Windows上。 第一步 Linux系统安装memcached&#xff0c;首先要先安装libevent库 Ubuntu/Debian sudo apt-get install libevent libevent-deve 自动下…

onlyoffice回调函数controller方式实现

原文同步自作者博客&#xff1a;https://www.daxueyiwu.com/post/706 springboot实现的onlyoffice协同编辑网盘项目可以去作者博客。 上代码&#xff1a; //新建报告GetMapping("report/createReport")public String CreatReport(HttpServletRequest request,Stri…

读Bilgin Ibryam 新作 《Dapr 是一种10倍数 平台》

Bilgin Ibryam 最近加入了开发者软件初创公司Diagrid Inc&#xff0c;他是Apache Software Foundation 的 committer 和成员。他也是一个开源的布道师&#xff0c;并且是书籍 Kubernetes设计模式 和 Camel Design Patterns 的作者。早在2020年初 提出的Multi-Runtime Microserv…

如何在iPhone或iPad上使用Safari下载文件

Khamosh PathakKhamosh PathakIn your work or personal life, you’ll sometimes need to download a file on your iPhone or iPad. Using the new feature introduced in iOS 13 and iPadOS 13, you can now do this directly in Safari. No third-party app needed! 在工作…