Home >System Tutorial >LINUX >Which key to press to delete command line in linux
You can use shortcut keys to delete content in the Linux command line, including: Backspace: delete the character before the cursor. Delete: Delete one character after the cursor. Ctrl D: Delete the line where the cursor is. Ctrl K: Delete everything after the line where the cursor is. Ctrl U: Delete everything before the cursor. Ctrl X: Delete the character where the cursor is. Ctrl W: Delete the word where the cursor is. Ctrl Y: Restore recently deleted content. Ctrl _: Delete the word where the cursor is (including spaces).
Shortcut keys for deletion in the Linux command line
In the Linux command line, you can use the following shortcut keys to delete Content:
Backspace key (Backspace) : Delete the character before the cursor.
Delete key (Del) : Delete one character after the cursor.
Ctrl D: Delete the line where the cursor is.
Ctrl K: Delete everything after the line where the cursor is.
Ctrl U: Delete everything before the cursor.
Ctrl X: Delete the character where the cursor is.
Ctrl W: Delete the word where the cursor is.
Ctrl Y: Restore recently deleted content.
Ctrl _: Delete the word where the cursor is (including spaces).
Example
The above is the detailed content of Which key to press to delete command line in linux. For more information, please follow other related articles on the PHP Chinese website!