UNIX programmers follow a standard for keyboard and accelerator settings: "The hand moves at a minimum distance, doing more." ”
All Unix-like terminals have some shortcut keys CTRL + N = down, Ctrl+b = left, ctrl+f = right, Ctrl+p = on, Ctrl+h = backspace, and these are all available.
CTRL + L-clear screen is equivalent to command clear, another command to clear screen is reset
CTRL + C-Terminate command
CTRL + D-exits the shell as if it could also represent EOF
CTRL + Z-the current process is placed in the background and FG is restored.
CTRL + A-cursor moves to the beginning of the line
CTRL + E-the cursor moves to the end of the line
CTRL + U-Clears the character of the cursor to the beginning of the line
CTRL + W-clear the cursor before a word
CTRL + K-clears the character of the cursor to the end of the line
CTRL + H-delete one character before the cursor
CTRL + T-swap the first two characters of the cursor
Ctrl + Y-paste the characters that were removed from the previous Ctrl+u class command
CTRL + P-Previous command
CTRL + N-Next command
CTRL + F-Move the cursor back one character
CTRL + B-cursor moves forward one character
CTRL + S-Suspend current shell
CTRL + Q-Re-enable
!! Previous command
!-N Countdown Nth History command
!-n:p Print Previous command (not performed) Shift+ctrl+t: New tab
ctrl+shift+ W: Close tab
Ctrl+pageup: Previous tab
Ctrl+pagedown: Next tab
ctrl+shift+ PageUp: Label page shift left
S ctrl+hift+ PageDown: Tab Right Shift
ALT+1: Switch to tab page 1
ALT+2: Switch to tab page 2
ALT+3: Switch to tab page 3
CTRL + Shift +n: New Window
CTRL + Shift +Q: Closing the terminal
Copy/paste in terminal:
ctrl+shift+ C: Copy
ctrl+shift+ V: Paste
Terminal change Size:
F11: Fullscreen
Ctrl+plus: Zoom In
Ctrl+minus: Decrease
Ctrl+0: Original Size
There are many handy shortcuts under the Linux terminal that will greatly improve your productivity. The Linux terminal is the same as some commands and VIM commands in edit mode, such as:<c-h> <C-w> <C-u>.
Looking at the shortcut keys above, I suddenly have a new understanding of the Shift,ctrl,alt (Option) key on the keyboard. All the shortcut keys are CTRL + other keys. The terminal can set shortcut keys that are vim or emacs types. The default setting is the Emacs type.
Reference documents:
[1] Linux terminal shortcut keys and establish the shortcut keys to open the terminal. Http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/10/13/2209834.html
[2] The Bash shortcut that lets you boost command line efficiency [FULL VERSION].
Https://linuxtoy.org/archives/bash-shortcuts.html.
[3] Linux terminal shortcut keys. https://www.centos.bz/2011/06/linux-terminal-shortcuts/.
[4] Mac/linux shortcut key operation for terminal cursor. http://blog.cnrainbird.com/index.php/2012/03/23/mac_linux_zhong_duan_guang_biao_de_kuai_jie_jian_cao_zuo/.
Linux common terminal shortcut keys