Deletion Commands
Keystrokes | Command name | Description |
---|---|---|
Del | backward-delete-char | Delete previous character. |
C-d | delete-char | Delete character under cursor. |
M-Del | backward-kill-word | Delete previous word. |
M-d | kill-word | Delete the word the cursor is on. |
C-k | kill-line | Delete from cursor to end of line. |
M-k | kill-sentence | Delete sentence the cursor is on. |
C-x Del | backward-kill-sentence | Delete previous sentence. |
C-y | yank | Restore what you’ve deleted. |
C-w | kill-region | Delete a marked region (see next section). |
(none) | backward-kill-paragraph | Delete previous paragraph. |
(none) | kill-paragraph | Delete from the cursor to the end of the paragraph. |
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.