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

后端 未结 15 1419
余生分开走
余生分开走 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:13

    It looks like Chrome is not in your $PATH the way it should be. Easy solution would probably be to uninstall and reinstall Chrome, which should put it in your $PATH. Then

    google-chrome [file] 
    

    should work for you.

提交回复
热议问题