我试过了
gnome-terminal -x 'cd /path/to/dir'
Run Code Online (Sandbox Code Playgroud)
和
gnome-terminal -e 'cd /path/to/dir'
Run Code Online (Sandbox Code Playgroud)
但是当新终端打开时,两者都会给我错误。如何让新终端在特定目录中启动?
Kri*_*per 62
用
gnome-terminal --working-directory=/path/to/dir
Run Code Online (Sandbox Code Playgroud)
小智 5
sudo apt-get install nautilus-open-terminal
Run Code Online (Sandbox Code Playgroud)
重新启动 nautilus,然后右键单击任何目录并选择“在终端中打开”。