Common shortcut key collection under Linux terminal shell

Source: Internet
Author: User
Tags clear screen

Delete

"Ctrl" + "D" removes the character at the cursor location equivalent to VIM x or DL

"Ctrl" + "H" removes the character in front of the cursor, which corresponds to the HX or DH in vim.

"Ctrl" + "K" removes all characters after the cursor equivalent to VIM D shift+$

"Ctrl" + "U" removes all characters in front of the cursor equal to VIM D shift+^

"Ctrl" + "W" delete cursor before a word equivalent to VIM in db

"Ctrl" + "Y" restores the characters that were deleted when Ctrl+u was last executed

"Ctrl" + "?" Undoes the previous input

"Alt" + "R" undoes the previous action

"Alt" + "D" to delete the word after the cursor position

Move

"Ctrl" + "A" moves the cursor to the beginning of the command line equivalent to Vim shift+^

"Ctrl" + "E" moves the cursor to the end of the command line at the equivalent of vim shift+$

"Ctrl" + "F" cursor moves backwards by one character equivalent to Vim in L

"Ctrl" + "B" cursor moves forward one character equivalent to Vim H

"Ctrl" + "arrow key left" cursor moves to the beginning of the previous word

"Ctrl" + "arrow keys right" cursor moves to the end of the next word

"Ctrl" + "X" jumps between the last character of the cursor and the character where the current cursor is located

"Alt" + "F" jumps to the end of the word where the cursor is located

Replace

"Ctrl" + "T" replaces the current character of the cursor with one of the preceding characters

"Alt" + "T" swaps two cursors at the current position of the word and the previous word of the cursor

"Alt" + "U" to capitalize the current position of the cursor in the word

"Alt" + "L" to change the current position of the cursor to lowercase

"Alt" + "C" to capitalize the first letter of a word in the current position of the cursor

"^OLDSTR^NEWSTR" replaces the previous command string

History command Edit

"Ctrl" + "P" returns the last input command character

"Ctrl" + "R" Enter word Search history command

"Alt" + "P" Enter the character to find the historical command close to the word typeface

"Alt" + ">" returns to the last execution command

Other

"Ctrl" + "S" Lock the terminal

"Ctrl" + "Q" Unlock terminal

"Ctrl" + "L" clear screen equivalent to command clear

"Ctrl" + "C" from another line

"Ctrl" + "I" is similar to the tab completion function

"Ctrl" + "O" repeatedly executes commands

Number of "Alt" + "number key" actions

Reference:

Http://bbs.chinaunix.net/thread-846189-1-1.html (the above content is transferred from this article)

Common shortcut key collection under Linux terminal shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.