I want to create command in terminal that would allow me to use
and have the the given file open in Google Chrome.
How can I get this working?
You can use the open command with the -a flag to open a file or location in Chrome:
open -a "Google Chrome" index.html
This also works with URLs, i.e. open -a "Google Chrome" http://www.apple.com.
open -a "Google Chrome" http://www.apple.com
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago
8 months ago