Linux command line shortcut keys

Source: Internet
Author: User
Tags clear screen

Linux command line edit shortcut keys

First summarize a few people think the most useful

CTRL +? Undo previous input

CTRL + C from another line

CTRL + R Enter Word search history command

CTRL + U delete all characters in front of the cursor equal to VIM D shift+^

Ctrl + K Delete all characters after cursor equals vim d shift+$

Delete
CTRL + D deletes the character at the cursor location equivalent to VIM x or DL
CTRL + H deletes the character in front of the cursor, which corresponds to the HX or DH in vim.
Ctrl + K Delete all characters after cursor equals vim d shift+$
CTRL + U delete all characters in front of the cursor equal to VIM D shift+^
CTRL + W DELETE cursor before a word equals vim in db
Ctrl + Y restores the characters that were deleted when Ctrl+u was last executed
CTRL +? Undo previous input
ALT + R undo Previous action
ALT + D 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 one character equivalent to Vim in L
CTRL + B cursor moves forward one character equivalent to Vim in H
CTRL + ARROW key left cursor moves to the beginning of the previous word
CTRL + ARROW key right cursor moves to the end of the next word
CTRL + X jumps between the last character of the cursor and the character at which the current cursor is located
ALT + F jumps to the end of the word at the cursor position

Replace
CTRL + T replaces the current character of the cursor with one of the preceding characters
ALT + T swap two cursor at the current position of the word and the previous word of the cursor
ALT + U change the current position of the cursor to uppercase
ALT + L CHANGE the current position of the cursor to lowercase
ALT + C capitalizes the first letter of a word in the current position of the cursor
^oldstr^newstr Replace string in previous command

History command Edit
CTRL + P returns the last input command character
CTRL + R Enter Word search history command
ALT + P input character find history command close to Word typeface
ALT + > return to last Execute command

Other
CTRL + S lock Terminal
CTRL + Q unlock Terminal
CTRL + L clear screen equivalent to command clear
CTRL + C from another line
CTRL + I similar to tab completion function
CTRL + O repeat command
Number of ALT + number key operations

Linux command line shortcut keys

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.