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

/usr/bin/google-chrome www.google.com

just opens a new window.

link|improve this question
Works for me, and should work in general. – Hasturkun Aug 10 '11 at 14:59
feedback

migrated from stackoverflow.com Aug 10 '11 at 17:18

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.