gnome-terminal --working-directory some_path
Note:
- this option works only if used before other options, so keep it before.
- It doesn't work with relative paths, i.e.
..
won't work. This could be solved - StackOverflow
gnome-terminal --tab -- bash -c "<my_script or command> exec bash" # syntax
gnome-terminal --tab -- bash -c "echo Hello; exec bash" # example
Note: focus shifts to the new terminal (tab)
gnome-terminal --window -- bash -c "<my_script or command> exec bash" # syntax
gnome-terminal --window -- bash -c "echo Hello; exec bash" # example
Note: focus shifts to the new terminal (window)
I need this top open both frontend backend servers of my web apps at the same time, using a single command.