如何从终端控制谷歌浏览器

Bbb*_*bbh 9 google-chrome ubuntu

在 Ubuntu 中,要从命令行控制 Opera,您将使用命令

opera -remote "openURL(www.google.com)"
Run Code Online (Sandbox Code Playgroud)

谷歌浏览器有类似的命令吗?使用命令

/usr/bin/google-chrome www.google.com
Run Code Online (Sandbox Code Playgroud)

只是打开一个新窗口。

小智 8

chromix项目可能是你在找什么。它允许从命令行(或在脚本中)控制 chrome 及其选项卡。

免责声明:我是作者。


dot*_*hen 5

这对我有用,在 Ubuntu Linux 上的新 Chrome 窗口中打开我的个人网站:

google-chrome http://dotancohen.com
Run Code Online (Sandbox Code Playgroud)

看起来您缺少初始http://部分。