1

When I type:

gnome-terminal --tab -e 'ls' --tab -e 'ls'

Two new tabs opens in a new terminal window with the 'ls' results, but the prompt is not displayed and no more useless. I want to continue working in these tabs normally.

Can you help me? :)

gnome-terminal-tabs

ecurbelo
  • 333
  • 3
  • 11
  • possible duplicate of [Avoid gnome-terminal close after script execution?](http://stackoverflow.com/questions/3512055/avoid-gnome-terminal-close-after-script-execution) – P.P Aug 17 '14 at 16:57
  • Next time I will search better. Sorry and thanks. – ecurbelo Aug 17 '14 at 19:00

1 Answers1

3

Try this:

gnome-terminal --tab -e 'ls; exec bash'

Or

gnome-terminal --tab -e 'bash -c "ls; exec bash"'
konsolebox
  • 72,135
  • 12
  • 99
  • 105