Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Syntax is :

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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.