Monday, April 29, 2024
68
rated 0 times [  68] [ 0]  / answers: 1 / hits: 85024  / 2 Years ago, thu, june 9, 2022, 10:34:52

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?


More From » command-line

 Answers
6

Use



gnome-terminal --working-directory=/path/to/dir

[#42320] Saturday, June 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
enincroscope questions
Thu, Jan 20, 22, 08:33, 2 Years ago
Thu, Apr 7, 22, 01:09, 2 Years ago
Mon, May 16, 22, 09:08, 2 Years ago
;