我通过运行sudo apt-get install xdotool安装xdotool并抛出xdotool key ctrl alt t命令从当前的一个开启一个新的终端窗口.但它无法正常工作.
从当前gnome-terminal打开新终端窗口的命令是什么?
最佳答案
只需这个命令就可以:
gnome-terminal
通常,如果你想要一个命令从终端打开并分开(所以它返回到提示而不必关闭打开的程序),你必须使用这样的东西:
gnome-terminal & disown
但是,父终端似乎检测到正在使用相同的命令,因此您不需要这样做,gnome-terminal就足够了.当从Xfce的终端运行xfce4-terminal,从KDE运行konsole时也似乎也会发生这种情况(从xterm运行xterm时似乎不起作用(另请参阅xterm xterm
) – 从Gnome / Unity& Xfce的终端运行konsole也可以,但对于Xfce终端在gnome终端,你需要xfce4-terminal& disown).
欲了解更多,请访问gnome-terminal
‘s manual page:
gnome-terminal [-e, --command=STRING] [-x, --execute ] [--window-with-profile=PROFILENAME] [--tab-with-profile=PRO‐
FILENAME] [--window-with-profile-internal-id=PROFILEID] [--tab-with-profile-internal-id=PROFILEID] [--role=ROLE]
[--show-menubar] [--hide-menubar] [--geometry=GEOMETRY] [--disable-factory] [-t, --title=TITLE] [--working-direc‐
tory=DIRNAME] [--usage] [-?, --help]
相关文章
转载注明原文:gnome-terminal – 从当前终端打开新终端窗口的命令? - 代码日志