Thursday, May 2, 2024
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 20496  / 1 Year ago, fri, november 25, 2022, 2:23:44

I'm wondering if there is keyboard shortcut to close terminal window?


More From » command-line

 Answers
5

An active terminal will quit if you tell it there's no more input.

That can be done with a quick Control+D.



If you have things running (or something already typed into a terminal input), that won't work. You'll either have exit or clear the line. Control+C will usually work for that.



Alternatively, running exit isn't much of a hardship.



Note that these will bump you out of one layer of shell. If you start this in a subshell of a subshell, logged into something over SSH, it'll take a few goes to close the window.


[#21299] Friday, November 25, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;