【发布时间】:2013-08-27 17:59:07
【问题描述】:
我想从 bash 终端使用 Google Chrome 或 Chromium 打开当前目录中的文件 (index.html)(我使用的是 Linux Mint 15)。命令是什么?我已经尝试了直观的方法,并且做了一些堆栈和谷歌搜索无济于事,奇怪地被忽视了(也许很明显)。提前致谢。
hermes@hades ~/coding/.../public $ google-chrome index.html
google-chrome: command not found
hermes@hades ~/coding/.../public $ google-chromium index.html
google-chromium: command not found
【问题讨论】:
-
如果将 chrome 设置为默认浏览器,则只需
open index.html。否则,open -a (chrome location) index.html -
至少在 Mac 上这应该是公认的答案。
-
@chovy 不幸的是,这与 Mac 无关。
-
相关:对于那些试图为灯塔目的安装 chromium 的人,必须安装 chromium (v7) 而不是 chromium-browser (v6)
标签: bash google-chrome