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?
Go to your directory of choice, then you have some alternatives:
Whenever you have a gnome-terminal open, opening a new tab (ie 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.
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.)
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.