Play the shell command line

Source: Internet
Author: User

Move cursor shortcut keys

Ctrl+f move forward one character

Ctrl+b Move backward one character

CTRL + A moves to the beginning of the current home

Ctrl+e move to the end of the current line

Alt+f move forward one word

Alt+b Move backward One word

Ctrl+l clear the screen and start a new line at the top of the screen

Edit command line shortcut keys

Ctrl+d Delete the current character (the cursor is on a blank command line and will exit the shell)

Alt+d Delete the part from the cursor to the end of the current word

Ctrl+w Delete from cursor to current Word start section

Ctrl+k Delete text until the end of the line

Ctrl+u Delete text until the beginning of the line

Ctrl+t swap the position of the current character and the previous character

Alt+t Exchange The position of the current word and the previous word

Alt+u the current word into uppercase

Alt+l the current word into lowercase

Cut, paste shortcut keys

Alt+d cut from the cursor to the end of the current word

Ctrl+k cut text until the end of the line

Ctrl+u cut text until the beginning of the line

Alt+y Rewind to the previously clipped text and paste it

Other

CTRL + R Find in history commands sometimes it's a long time to find a more complex, directly here, the shell will automatically find and invoke; The characters that follow are automatically searched in the command history cache.

ESC +. Take the last record of the previous command

!string executes the last matching command, for example, the previous command NETSTAT-TLNP, the current command line needs to execute the same command, enter! NET can

Other frequently used items will be updated in the future.

Play the shell command line

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.