💻 Software
How do I clear what I typed into the prompt?
Fresh5 days ago
Mar 15, 20264789 viewsConfidence Score0%
0%
Problem
I type a really, really long command into bash. Whoops, it was the wrong command. As of now, this means that I go through two hells: Realizing my command was useless. Having to clear my shell by holding down Backspace until the prompt is clear. Is there a faster way?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I clear what I typed into the prompt?
Low Risk
Ctrl-U clears the command input you've typed, up to the current cursor position. So if you're using it just after you've typed the command, but haven't moved the cursor back, it'll clear everything you've typed.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix