Using Ctrl or Alt AND backspace to delete last word in Bash
Fresh3 days ago
Mar 15, 202624720 viewsConfidence Score0%
0%
Problem
In Linux I'm used to press Ctrl-Backspace to delete the last word but I don't know how to do it in Bash terminal. In OS X I use Alt-Backspace to do the same thing. Is there any way of making Bash recognize the Ctrl- or Alt-Backspace key combination to delete last word? In Linux I use as terminal em…
Error Output
terminator
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Using Ctrl or Alt AND backspace to delete last word in Bash
Low Risk
You can always use Ctrl-W. It deletes the word before the cursor and works in every Bash. See here for a list of Bash keyboard shortcuts.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix