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
add comment

1 Answer

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
add comment

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.