Command Line – How to Open a New Terminal and Run Multiple Commands

command linegnome-terminal

I want to Open a new Terminal in from within terminal.

It should have Shell prompt as well as already run few commands.

How to do it ?

Best Answer

Syntax is :

gnome-terminal -x bash -c "[COMMAND 1]; [COMMAND 2]; exec $SHELL"

Got from these articles: unix.stackexchange, and tested.

Related Question