I installed xdotool by running sudo apt-get install xdotool
and throw xdotool key ctrl+alt+t
command to open a new terminal window from the current one.But it was not working.
What was the command to open a new terminal window from the current gnome-terminal?
Just this command will do:
Normally if you want a command to open from the terminal and separate (so it returns to the prompt without having to close the opened program), you have to use something like this:
However the parent terminal seems to detect that the same command is being used so you don't need to do that and
gnome-terminal
will suffice. This also seems to happen when runningxfce4-terminal
from Xfce's terminal,konsole
from KDE's as well (doesn't seem to work when runningxterm
fromxterm
(see alsoxterm xterm
) - Runningkonsole
from Gnome/Unity & Xfce's terminal works as well, but for Xfce's terminal in gnome terminal you needxfce4-terminal & disown
).For more visit
gnome-terminal
's manual page:Command to open new terminal window from the current terminal,
To install
xdotool
,The following script will open a new tab in the current gnome-terminal window and optionally give that tab a title. This works from any window, you don't have to be in a gnome-terminal window to run it. And, if there is no gnome-terminal running, it will start one. The only caveat is that if you changed the hotkey for opening a new tab you might have to change the line
xdotool key ctrl+T
to use your hotkey instead.