The Linux command line learning Note III

Source: Internet
Author: User

Linux Keyboard Operation tips

Cursor Movement:

Ctrl-a Move cursor to the beginning of the line.
CTRL-E Move cursor to the end of the line.
Ctrl-f Move cursor forward one character; Same as the right ARROW key.
Ctrl-b Move cursor backward one character; Same as the left ARROW key.
Alt-f Move cursor forward one word.
Alt-b Move cursor Backward one word.
Ctrl-l Clear the screen and move the cursor to the top left corner. The
Clear command does the same thing.

To modify the command line text:

Ctrl-d Delete the character at the cursor location
Ctrl-t Transpose (Exchange) the character at the cursor location with the
One preceding it.
Alt-t transpose the word at the cursor location with the one preceding it.
Alt-l Convert the characters from the cursor location to the end of the
Word to lowercase.
Alt-u Convert the characters from the cursor location to the end of the
Word to uppercase.

Cut and copy on the command line:

Ctrl-k Kill text from the cursor location to the end of line.
Ctrl-u Kill text from the cursor location to the beginning of the line.
alt-d Kill text from the cursor location to the end of the current word.
Alt-backspace
Kill text from the cursor location to the beginning of the
Word. If the cursor is at the beginning of a word, kill the previous
Word.
Ctrl-y Yank (copy) text from the kill-ring and insert it in the cursor location.


Command line history:

!! Repeats the last command, which is equivalent to the UP ARROW key of the secondary keyboard;
!number execution of the command line of article number in history;
!string executes the command line starting with string in the history;
!? String executes the command line in the previous history that contains string;

The Linux command line learning Note III

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.