我试过这个:
X终端-模拟器-命令=“printf‘新终端模拟器打开供输入’”
但它只打开终端窗口而不打印任何东西!
如果我用托盘:
gnome终端
它什么也做不了!
发布于 2018-01-21 03:46:23
尝试:
gnome-terminal -x sh -c 'printf "New terminal emulator is opened for input\n"; exec bash'
您可能感兴趣的来源和更多内容:https://superuser.com/a/198022/755698
另一种选择是:
gnome-terminal -e 'sh -c "printf \"New terminal emulator is opened for input\n\";sleep 10"'
在第一种情况下,终端将保持打开,并等待commands...In的第二个,它将等待10秒,然后关闭.
https://unix.stackexchange.com/questions/418526
复制相似问题