Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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,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.