首页 > 代码库 > ubuntu terminal shortcut

ubuntu terminal shortcut

Keyboard shortcuts

Keyboard shortcuts are combinations of keys that allow you to perform actions, such as opening the settings dialog or accessing a feature inside Terminal quickly. These shortcuts can be modified to suit your preferences.

To change a keyboard shortcut:

  1. Select Edit ? Preferences ? Shortcuts.

  2. Select the shortcut that you wish to edit by clicking on it.

  3. Once the shortcut is selected, click on the shortcut key combination to edit it.

  4. Press your desired shortcut key combination as you would enter it to use it. The keys that you can use include Alt,Alt GrCtrlShift, number and letter keys.

    Mnemonic key combinations, such as Alt+F will not work.

  5. Once you have entered your new shortcut, it will automatically be saved and you should see it in the list next to the corresponding action.

To disable a shortcut, edit it and press the Backspace instead of the new shortcut.

File shortcuts

The default shortcuts for options under File menu are:

Action

Keyboard Shortcut

New Tab

Shift+Ctrl+T

New Window

Shift+Ctrl+N

Close Tab

Shift+Ctrl+W

Close Window

Shift+Ctrl+Q

Edit shortcuts

The default shortcuts for options under Edit menu are:

Action

Keyboard Shortcut

Copy

Ctrl+Shift+C

Paste

Ctrl+Shift+V

View shortcuts

The default shortcuts for options in the View menu are:

Action

Keyboard Shortcut

Full Screen

F11

Zoom In

Ctrl++

Zoom Out

Ctrl+-

Normal Size

Ctrl+0

Tab shortcuts

The default shortcuts for working with tabs are:

Action

Keyboard Shortcut

Switch to Previous Tab

Ctrl+Page Up

Switch to Next Tab

Ctrl+Page Down

Move Tab to the Left

Shift+Ctrl+Page Up

Move Tab to the Right

Shift+Ctrl+Page Down

Switch to Tab 1

Alt+1

Switch to Tab 2

Alt+2

Switch to Tab 3

Alt+3

Switch to Tab 4

Alt+4

Switch to Tab 5

Alt+5

Switch to Tab 6

Alt+6

Switch to Tab 7

Alt+7

Switch to Tab 8

Alt+8

Switch to Tab 9

Alt+9

Switch to Tab 10

Alt+0

Help shortcuts

The default shortcuts for accessing items in the Help menu are:

Action

Keyboard Shortcut

Contents

F1

Other

There are also some shortcuts that cannot be edited:

Action

Keyboard Shortcut

Scroll up by one line

Shift+Ctrl+Up

Scroll down by one line

Shift+Ctrl+Down

Bash shortcuts

These are Bash shortcuts. Bash is usually the default shell.

Bash shell specific keyboard shortcuts are:

Action

Keyboard shortcut

Erase a word

Ctrl+W

Erase a line

Ctrl+U

Move to the start of the line

Ctrl+A

Move to the end of the line

Ctrl+E

Move back one character

Ctrl+B

Move back one word

Alt+B

Move forward one character

Ctrl+F

Move forward one word

Alt+F

Delete from the cursor to the beginning of the line.

Ctrl+u

Delete from the cursor to the end of the line.

Ctrl+K

Delete from the cursor to the start of the word.

Ctrl+W

Delete previous word

Esc+Del or Esc+Backspace

Pastes text from the clipboard.

Ctrl+Y

Clear the screen leaving the current line at the top of the screen.

Ctrl+L

Reverse incremental search of history

Ctrl+R

Reverse non-incremental search of history

Alt+P

 

Ubuntu终端常用的快捷键

ubuntu terminal shortcut