Linux command line shortcut key linux command line shortcut key: C-k: Press Ctrl first, then press k; M-k: click Esc first, then press k. Www.2cto.com move cursor: C-a: move to the beginning of the line C-e: move to the end of the line C-B: Move back (left) move a character C-f: Move back (right) move one... linux command line shortcut key linux command line shortcut key: C-k: Press Ctrl first, then press k; M-k: click Esc first, then press k. Www.2cto.com move cursor: C-a: move to the beginning of the line C-e: move to the end of the line C-B: Move back (left) move a character C-f: Move back (right) move one character M-B: move one word back (left) M-f: move one word back (right) delete character: C-h: delete the character C-d at the left of the cursor: delete the character at the right of the cursor (note: If the current command line does not contain any character, the system or terminal will be logged out) delete the word: m-d: Delete a word from the cursor until the word ends. C-w: The word is deleted from the cursor position to the left. Delete row www.2cto.com: C-k: starting from the cursor position. delete all characters on the right until the row ends. C-u: starts from where the cursor is located. all characters on the left are deleted until the row starts. The entire row can be deleted by combining C-a C-k, C-e C-u, or C-k C-u. C-l: clear the screen, and then re-display the content of the row where the current cursor is located on the top. Recovery operation: C-_: the status before the reply. Cancel the operation. Paste: C-y: Paste the deleted character or string to the position of the cursor. Repeated operation action: M-Operation count operation action: specifies the number of operations and repeats the specified operation. Search for the History Command C-p: display the previous history command C-n of the current command: display the next History Command C-r: Search for history commands, as the input displays a matching command in the history command, the Enter key executes the matching command; the ESC key is displayed on the command line without executing the matching command.
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.