Is there any way to save the path of the current directory from the current Gnome Terminal window. I need this to when I open another terminal refuse to type cd repeatedly again?
Press Ctrl+Shift+N in gnome-terminal for a new terminal window.
Press Ctrl+Shift+T in gnome-terminal for a new terminal tab.
Or right click in the terminal and chose
The new terminal window or tab inherits the working directory from its parent terminal.
This works also with the Xfce terminal.
LXTerminal only inherits the working directory from its parent terminal on a new tab.
If you want to open terminal for a current directory and don't want to use cd in terminal to move to current directory then
Install nautilus-open-terminal available in software centre.
you can right click in the current directory and you will find 'open in terminal' option.
You need to restart nautilus after installing to restart nautilus type in terminal
to start again
There are many ways to simplyfy your task ie to save you from typing the CD thing again and again.
1. Make an alias for it to help you go to the directory again and again like
Add the line mentioned below
Now whenever you want to go to the directory just type goto on your terminal.
problem : This will require you to make multiple aliases for different directories.
2 A function to save your life - extended aliases.
3. Installing nautilus-open-terminal .Here's a link to it.
Problem with it is that every time you need to go to the directory manually and then click open terminal.
Choose what suits you the best :-)
You can make an alias for the current working directory in
Now you can access that directory by running only the alias name on the terminal.
Then i run the below command on a new terminal,
To clear all the aliases,
GNOME wiki suggests sourcing
I.e. add this line to your
This way Ctrl+Shift+N in gnome-terminal will inherit current working directory.