Linux Shell shortcut

Source: Internet
Author: User

Summary of Linux Shell shortcut operations (including shortcut keys and efficient operations ):

CTRL +: Start with the command line

CTRL + E: End of the command line

CTRL + L: Clear screen, equivalent to the clear command

CTRL + u: Cut the content before the cursor

CTRL + k: Cut the content after the cursor

CTRL + Y: Undo, similar to Ctrl + Z in office

CTRL + R: Search for histroy, automatic match, and location

CTRL + c: Terminate a running command

CTRL + d: Exit the Current Shell

CTRL + z: Transfer to the background for running

!!: Execute the previous command, sudo !! Run the previous command with sudo permission

CTRL + P: Previous command, same as the direction key

CTRL + n: Next command, same as the lower direction key

! $
: The previous command parameter. Run cat 123456789.log, and then run vim! $ You can use Vim to open 123456789.log

^ Foo ^ bar: Replace Foo in the previous command with bar and execute (this can be implemented! $, But more! $ More powerful)

To be continued...

 

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.