Vikrant Chaudhary Vikrant Chaudhary - 27 days ago 6
Linux Question

Gnome-Terminal, how to start in a different directory?

Whenever I start my console

gnome-terminal
in Ubuntu, it starts in the home directory. How can I make it start in a different directory say
~/myfolder
?
I tried to write
cd ~/myfolder
in
~/.profile
but nothing happens.

Answer

if you start gnome-terminal like "gnome-terminal --working-directory=myfolder" it will start with the working directory at ~/myfolder. so you could add a new entry to your menu to use that command instead of the other one.