linux如何新建一个终端并执行命令

cd /usr/bin
./gnome-terminal #新建终端
echo helloword
如何让上面的helloworld显示在新建的终端里。

1.(1)ctrl+shift+t 生成terminal
(2)ctrl+alt+F{1,6} 切换到虚拟控制台(6个);ctrl+alt+F7/F8, 返回图形界面
(3)直接执行gnome-terminal就可以生成另一个终端,不需“cd /usr/bin;
./gnome-terminal”
2.显示helloworld,首先查看当前的终端号:
[root@redhat yuanwei]# tty
/dev/pts/2
[root@redhat yuanwei]# echo helloworld > /dev/pts/2
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答