我试图在shell脚本中打开几个标签。在gnome-terminal中,它看起来像是:
gnome-terminal \
--tab -e "bash -ic \" echo 'First tab' "; exec bash\"" \
--tab -e "bash -ic \"echo 'Second tab' "; exec bash\""
我试图在lxterminal中做但不起作用:(
lxterminal \
--tabs -e "bash -ic \" echo 'First tab'; exec bash\"" \
--tabs -e "bash -ic \" echo 'Second tab'; exec bash\"" \
在帮助文件中我看到:
Usage:
lxterminal [Options...] - LXTerminal is a terminal emulator
Options:
-e, --command=STRING Execute the argument to this option inside the terminal
--geometry=COLUMNSxROWS Set the terminal's size
-l, --loginshell Execute login shell
-t, -T, --title=,
--tabs=NAME[,NAME[,NAME[...]]] Set the terminal's title
--working-directory=DIRECTORY Set the terminal's working directory
--no-remote Do not accept or send remote commands
-v, --version Version information
答案 0 :(得分:1)
只需打开标签,即可使用
lxterminal --tabs="First tab","Second tab"
但我不确定你能否在其中执行某些事情
P.S。通常我会在任何终端模拟器中使用tmux
或byobu
标签和其他舒适功能