如何从命令行使用Chrome打开文件? [英] How do I open a file with Chrome from the command line?

查看:187
本文介绍了如何从命令行使用Chrome打开文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从bash终端(我正在使用Linux Mint 15)上使用Google Chrome或Chromium在当前目录中打开文件(index.html).命令是什么?我尝试了直观的方法,并做了一些堆栈和谷歌搜索都无济于事,奇怪地被忽略了(也许很痛苦).提前致谢.

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've tried the intuitive approaches and have done a few stack and google searches to no avail, oddly overlooked (perhaps painfully obvious). Thanks in advance.

hermes@hades ~/coding/.../public $ google-chrome index.html
google-chrome: command not found
hermes@hades ~/coding/.../public $ google-chromium index.html
google-chromium: command not found

推荐答案

做一些铬的搜索,就像chromium-browser path|file一样.

Doing some search for chromium you could do it like chromium-browser path|file.

这篇关于如何从命令行使用Chrome打开文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆