In Ubuntu, to control Opera from the command line you would use the command
opera -remote "openURL(www.google.com)"
is there a command like that for Google Chrome? Using the command
just opens a new window.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
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.
Also if google Chrome is the default browser then it can be opened using:
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)
Taken from here: https://askubuntu.com/questions/19919/command-to-open-a-url
I would just do
chromium-browser (for chromium), or
google-chrome, and instead of depending on it being there in
/usr/bin/google-chrome just rely on you PATH, or if you really want to know exactly where it is just type
which google-chrome and it will give you the path note that the
which command will tell you the static location of an application