Monday, May 6, 2024
24
rated 0 times [  24] [ 0]  / answers: 1 / hits: 7178  / 3 Years ago, mon, june 14, 2021, 10:42:20

How can I minimize the Terminal window using a command? For example: I use the clear command to clear the terminal output, which command can I have to use to minimize the terminal window?


More From » gnome-terminal

 Answers
2

You could use this command:



xdotool windowminimize $(xdotool getactivewindow)


You can change xdotool getactivewindow with a specific window that you would like to minimize.



xdotool wouldn't be installed on Ubuntu by default.So run the below command to install xdotool package.



sudo apt-get install xdotool

[#30390] Tuesday, June 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elopingapo

Total Points: 206
Total Questions: 110
Total Answers: 114

Location: Guam
Member since Tue, Nov 29, 2022
1 Year ago
;