2

In linux, I can open a new terminal by executing gnome-terminal command on the existing terminal, but how can i open the new terminal with arguments? I tried gnome-terminal --command ls but the new terminal opens and closes quickly before I can see if anything is happening there.. Any suggestions how can I do this?

Muhammad Omer
  • 543
  • 1
  • 8
  • 15

2 Answers2

1

You can use xterm

xterm -e command

xterm -e ls
Next Door Engineer
  • 2,818
  • 4
  • 20
  • 33
0

You can use virtual teminal:

$openvt ( No need to install anything like xterm, it is available by default in most of linux flavour )

e.g. $openvt ls    (Run the 'ls' on the next free VT)

To switch to a VT, Alt+F<1-12>

abhishek verma
  • 223
  • 1
  • 7