Clear terminal using keyboard shortcut
Fresh3 days ago
Mar 15, 202696787 viewsConfidence Score1%
1%
Problem
I was curious if there is a way to clear the terminal buffer/output through some keyboard shortcut. I am using Ubuntu. I am aware that Ctrl + L clears the terminal, but you can still scroll back to see the old text. I am looking for something similar to what command does. On Mac apple + k seems to do the trick.
Error Output
reset
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Clear terminal using keyboard shortcut
Low Risk
In gnome terminal, you can edit the keyboard shortcuts with You can then map the command "Reset and Clear", which seems to do what you're looking for. Alternatively, you can limit the scrollback history to a small number (say 0) and Ctrl+L will be closer to what you are looking for.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix