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
Just type in the program name followed by the file:
google-chrome {file-path}
ex:
google-chrome ~/index.html
On Ubuntu 12.04, at least, it's /opt/google/chrome/chrome
; I've also got a symlink to it at /usr/bin/google-chrome
If Chrome is your main browser, just use
see your_file.html
You can open a file using below terminal commands (Linux)
google-chrome < filepath >
google-chrome --new-window < filepath >
google-chrome --incognito (--incongnito-mode) < filepath >
<filepath> = localhost/test/../filename.html
start index.html
This worked for me. Hope it does for you too.
Try
open {filename}
if it's an .html
file it should open in your default browser