Shotcuts in Linux terminal for typing commands

Source: Internet
Author: User
Tags clear screen

Shotcuts Description
History Show command History list
Ctrl+p Show Previous command
CTRL + N Show Next command
!num The NUM command that executes the command history list
!! Executes the previous command
!? String? Executes the most recent command with string strings
Ctrl+r Then enter several characters, start searching up for the command that contains the character, continue pressing ctrl+r, search for the previous matching command
Ctrl+s Similar to Ctrl+r, just forward retrieval
alt+< History list First item
Alt+> Last item in history list
Ctrl+f The cursor moves forward one character
Ctrl+b Move the cursor backward one character
Alt+f The cursor moves forward one word
Alt+b Move the cursor backward one word
LS!$ Executes the command LS, and the parameter of the above command is its parameter
CTRL + A Move to the beginning of the current line
ctrl+e Move to the end of the current line
esc+b Move to the beginning of the current word
esc+f Move to the end of the current word
ctrl+l Clear Screen
Ctrl+u Cut all characters before the cursor in the command line (excluding itself)
ctrl+k Cut all characters (including itself) after the cursor in the command line
Ctrl+d Delete the character at the cursor location
ctrl+h Delete the previous character at the cursor location
Ctrl+y Paste the character you just deleted
ctrl+w A word (delimited by spaces, punctuation, and so on) before the clipping cursor
Alt+d Words after clipping the cursor
esc+w Delete the character that precedes the cursor to the end of its word (delimited by spaces, punctuation, and so on)
ctrl+t Reverses the position of the character where the cursor is located and before it, and moves the cursor to the next character
Alt+t Swap position of current and previous words
Alt+u Convert the current word to uppercase
alt+l Convert the current word to lowercase
Alt+c Capitalize the current vocabulary into the first character
Ctrl + V Insert special characters, such as Ctrl+v+tab join TAB key
esc+t Reverses the position of the cursor and its adjacent words
CTRL + C Delete entire row
CTRL + (x u) Press CTRL while pressing X and u again to undo the action you just made
Ctrl+s Suspend current Shell
Ctrl+q Re-enable the suspended shell

Shotcuts in Linux terminal for typing commands

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.