Thursday, May 2, 2024
130
rated 0 times [  130] [ 0]  / answers: 1 / hits: 265834  / 2 Years ago, fri, march 18, 2022, 12:01:11

Is it possible to open a new tab in the current terminal with some commands?


More From » command-line

 Answers
3

If you just want to open a new tab



To open a new tab in the current opened terminal you can press SHIFT+CTRL+T.
Alternatively, use the top level menu, which shows the keyboard shortcut (see screenshot below)



If you want to do it from the command line



Install xdotool - a program that lets you simulate keyboard input (among other things).



sudo apt-get install xdotool


then type in the terminal:



xdotool key ctrl+shift+t


That will simulate pressing the key combination, and open the new tab in the terminal.



enter image description here


[#28302] Friday, March 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
trousransla

Total Points: 285
Total Questions: 112
Total Answers: 113

Location: Spain
Member since Thu, Dec 23, 2021
2 Years ago
;