Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 1 down vote accepted

Syntax is :

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

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

share|improve this answer

Your Answer


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