Can I duplicate a GNOME terminal session?

Often I would like to open a new terminal in the directory i'm currently working in. E.g. I'm working in ~/some/folder/ and I want to run some program, while at the same time keep a terminal at my disposal in the current directory.

Is there some way I can duplicate the current terminal, by some command or maybe a key combination?


Solution 1:

Press Ctrl + Shift + T

This will open a new tab in GNOME Terminal with same directory(PWD)

Press Ctrl + Shift + N

This will open a new window of GNOME Terminal with same directory(PWD)

Solution 2:

You can open a second terminal in the same directory using the following command:

nohup gnome-terminal --working-directory $PWD >&/dev/null

And create an alias to quickly get it:

alias dupterm='nohup gnome-terminal --working-directory $PWD >&/dev/null'

You can have the same result with the following keyboard shortcut: Ctrl + Shift + n