Reputation:
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
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
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
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
Reputation: 49813
Go to your directory of choice, then you have some alternatives:
Upvotes: 3