Little-known secrets in the LinuxShell command line
Source: Internet
Author: User
Article Title: little-known secrets in the LinuxShell command line. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories/* tested in linux */
You suddenly don't want to execute it, and you want to delete the entire command, you keep pressing? Too inefficient.
One day, you suddenly forgot a super-long command you typed in the shell. What should you do? Too inefficient.
Take a look at the following content:
CTRL + a -- equivalent to the key
CTRL + e -- equivalent to the 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 the command is entered, this action is equivalent to pressing. The difference is that when you press CTRL + o, he will remember the last command of 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 it.
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