How to control Google Chrome from terminal

The chromix project might be what you're looking for. It allows control of chrome and its tabs from the command line (or within a script).

Disclaimer: I'm it's author.


This worked for me, opening my personal website in a new Chrome window on Ubuntu Linux:

google-chrome http://dotancohen.com

It looks like you are missing the initial http:// part.


google-chrome google.com

Also if google Chrome is the default browser then it can be opened using:

xdg-open https://google.com

But xdg-open expects https:// to be appended before the URL. If you don't add it then it will search for file on your local machine.

On Gnome this can be used (this will also use the default browser)

gnome-www-browser google.com

Taken from here: https://askubuntu.com/questions/19919/command-to-open-a-url