I've tried
gnome-terminal -x 'cd /path/to/dir'
and
gnome-terminal -e 'cd /path/to/dir'
but both give me errors when the new terminal opens. How do I get a new terminal to start in a specific directory?
|
I've tried
and
but both give me errors when the new terminal opens. How do I get a new terminal to start in a specific directory? |
|||
|
|
|
You can:
|
||||
|
|
Restart nautilus and then right click at any directory and select "Open in a Terminal". |
||||
|
|
|
Open "~/.bashrc" Scroll to the bottom and add a change directory command Example: cd ~/myfolder Then save and exit. The "~" will take you to your home folder (/home/loginname) Each time you launch your terminal it reads the .bashrc file so you could also put search paths ETC.....,, in it. |
|||
|
|
as root45 answered or u can do like this also if you start gnome-terminal like " |
|||
|
|
you can add nautilus-script like that Create empty file named as "Open Terminal Here" in
directory. Open it and write these lines inside.
Make it executable, and right click at any directory in nautilus and select "Scripts > Open Terminal Here" from menu. |
|||
|
|
|
Add the following line to the end of your
|
|||
|
|