Using ctrl key combination in linux command mode can make operation more convenient.
ctrl + k: Cut the cursor and its contents behind it;
ctrl + u: Cut the content before the cursor;
ctrl + y: Paste two commands at the cursor, the pasting method is the same as being cut;
ctrl + c: End the running program or command;
ctrl + d: End the current command window;
ctrl + r: Enter keywords to pop up the commands you have used;
ctrl + l: Clear screen; (The effect is the same as clear)
ctrl + a: Switch the cursor to the beginning of the line;
ctrl + e: Switch the cursor to the end of the line;
ps: Use of ctrl key combination under linux
We have all encountered the situation where we type in the wrong letter on the terminal, but we usually have the delete key.
In comparison, ctrl's key combination is more comfortable and faster (eliminating the large amount of movement and repeated operations of the finger).
Here I will list a few of the commonly used ones I use for convenience, so I use "^" to refer to ctrl
^h Send signal erase to delete the last typed character
^u Send a signal kill to delete the entire line
^w Send signal werase to delete the next typed word
^c Send signal intr to end the process; ^\ Send signals quit and intr have the same meaning
^d Send the signal eof (end of file) to indicate that you have no input and it is about to end. It is often used in BC.
^s Send signal stop stop screen display. (If you want to watch the entire startup process of debian, just press ^s and it will stop.
^q The sending signal start is the opposite side of stopt, which means restarting the screen display.
For specific purposes, you can use stty -a to display the mapping of keyboard signals.
Summarize
The above is the commonly used key combinations and operation methods of ctrl under Linux introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!
If you think this article is helpful to you, please reprint it. Please indicate the source, thank you!