我想用bash終端(我使用Linux Mint 15)在Google Chrome或Chromium中打開當前目錄中的文件(index.html)。命令是什麼?我嘗試了直觀的方法,並做了一些堆棧和谷歌搜索無濟於事,奇怪地忽略(也許痛苦地顯而易見)。提前致謝。如何從命令行使用Chrome打開文件?
[email protected] ~/coding/.../public $ google-chrome index.html
google-chrome: command not found
[email protected] ~/coding/.../public $ google-chromium index.html
google-chromium: command not found
如果Chrome設爲默認瀏覽器,只需使用'打開index.html'。否則,打開-a(chrome location)index.html' – vroomfondel
這應該是至少在Mac上被接受的答案。 – chovy
@chovy不幸的是,這不是關於Mac。 – konsolebox