Little-known secrets in shell command lines

Source: Internet
Author: User
Tags clear screen
The little-known secret in shell command line-Linux general technology-Linux technology and application information. The following is a detailed description. /* Pass the test in linux */
One day, you wrote a very long command.
$ Echo oooooooooooooooooooooooooooooooooooooooooooo
You suddenly don't want to execute it. If you want to delete the entire command, you keep pressing ? You are too earthy
One day, you suddenly forgot a super-long command you typed in the shell. ? You are too earthy
Let's take a look at the term technical skills found by the following tech experts.
CTRL + a -- equivalent Key
CTRL + e -- equivalent Key
CTRL + x -- if you press twice in a row, the beginning and the end will alternate.
CTRL + m -- after entering the command, this action is equivalent to pressing
CTRL + j -- after entering the command, this action is equivalent to pressing
CTRL + o -- after entering the command, this action is equivalent to pressing The difference is that when you press CTRL + o, he will remember the last command you CTRL + o
CTRL + c -- discard all content in the previous line and start the next line again
CTRL + u -- delete all letters before the cursor
CTRL + k -- delete all letters after the cursor
CTRL + w -- delete a word pointed by the cursor (from the cursor to the beginning of the word)
CTRL + y -- paste. The clipboard content is CTRL + u or CTRL + u.
CTRL + d -- equivalent
CTRL + h -- equivalent
CTRL + B -- equivalent
CTRL + f -- equivalent
CTRL + l -- equivalent to executing the clear screen command
CTRL + r -- search for the commands you typed forward
CTRL + p -- run the preceding command
CTRL + t -- it's fun to move a letter forward, haha
CTRL + s -- if you do not want the current terminal, try this
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.