In gnome-terminal if I choose File->"Open Terminal" or "Open Tab" I get a new window in the same directory as the current window. I would like to create a gnome-terminal profile that starts in a particular directory. I have experimented with the "run a custom command" option in the "Title and Command" section of the profile's properties, but so far all my attempts result in the terminal immediately exiting. Is there a way to do this?

1 Answer 1


I did some testing, and the following worked for me as a custom command:

sh -c "cd /path/to/dir; exec bash"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .