In case mulitple Linux terminal windows appear for whatever reasons, how can I quickly clear them?

Asked by Julianloui

Once in a while if I am not careful in entering the 'Ctl+Atl+T' key combination to open a terminal session, many terminal windows can appear simultaneously. I know what to do to prevent this from happening, namely by hitting the T key briefly and gentlly after pressing the 'CTL and Alt' key combination. But we can't always be 100% careful at all times. My question is how to clear the screen quickly after this problem occurs.

I consider the Ctl+Alt+ T way to open a Terminal window too useful to abandon it. Thanks.

Julianloui

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Alt+F4 to close

Revision history for this message
Julianloui (julianloui) said :
#2

Andrew,

Thanks for the advice. I've tried this method before and again tonight in vain. If it's a single window, it works fine as in the case of Microsot Windows by hitting the x icon or issuing the exit terminal command.

Julianloui

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

Press ALT+F2 and run:

killall gnome-terminal

If you use terminal a lot I recommend you install and run Guake. It is a terminal that hides and shows on shortcut key (F12 by default). You can run long commands then hide the terminal and let it run. Hit F12 to check progress etc.

Revision history for this message
Thomas Krüger (thkrueger) said :
#4

Also you should think about adapting the settings to the key press repeating in the System Settings → Keyboard.

Revision history for this message
Julianloui (julianloui) said :
#5

Andrew and Thomas,

Thank you both very much for your great advice. I'll definitely study the keyboard subject more as it plays such an important part in my daily use of Linux. The killall gnome-terminal command works very well for me.

Julianloui

Revision history for this message
Julianloui (julianloui) said :
#6

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

You can bind a shortcut key to execute the command if you wish.