James
James

Reputation:

Gnome Terminal Duplication

Very often I need two gnome-terminal sessions at the same location. Is it possible to open a single terminal, get to the directory I need, and make a duplicate of the terminal so I don't have to type in the cd command (which can get lengthy) a second time in the second window?

Upvotes: 0

Views: 1054

Answers (4)

Yusuf Adel
Yusuf Adel

Reputation: 50

consider doing this in the active directory you already in press F4

by default this will open a new terminal with the relative path you are in

Upvotes: 0

Leif Arne Storset
Leif Arne Storset

Reputation: 969

For Bash and Z shell, add this to your shell's rc file (that is, ~/.bashrc or /.zshrc):

source /etc/profile.d/vte.sh

(This solution is promoted from comments to other answers.)

Upvotes: 1

DaveParillo
DaveParillo

Reputation: 2275

Whenever you have a gnome-terminal open, opening a new tab (i.e. Ctrl-Shift-T) will open a new tab in the same directory you're in when you make the tab.

Ctrl-Shift-N does the same thing but opens a different window.

Upvotes: 2

u0b34a0f6ae
u0b34a0f6ae

Reputation: 49813

Go to your directory of choice, then you have some alternatives:

  1. 'gnome-terminal' will open new terminal in that directory
  2. New tab will open new tab in same directory
  3. You can start a new GNU Screen session based in this directory.

Upvotes: 3

Related Questions