How do I open a file with Chrome from the command line?

后端 未结 15 1246
余生分开走
余生分开走 2020-12-25 09:47

I would like to open a file (index.html) in the current directory with Google Chrome or Chromium from a bash terminal (I\'m using Linux Mint 15). What is the command? I\'v

15条回答
  •  被撕碎了的回忆
    2020-12-25 10:17

    This solution has always worked for me - open -a "google\ chrome.app" index.html - where "google\ chrome.app" is the name/location of chrome on your system.

    OR

    If Chrome is your default browser, simply - open index.html

提交回复
热议问题