我应该输入什么命令来从终端运行Chrome?

我有VNCjwm桌面访问的远程盒子。
没有菜单,没有桌面图标,只有终端窗口。

我已经下载了Chrome的.deb软件包并进行了安装。

如何从终端窗口运行它?

只需输入google-chrome可以了。 如果您安装了Chromium,它可能无法正常工作。 chromium-browser适用于Chromium。

  • 对于Chrome:

     google-chrome 
  • 对于Chromium:

     chromium-browser 

但是,如果它是一个远程盒子…至少通过ssh你必须使用-X连接选项才能运行窗口应用程序。 像这样:

 ssh -X username@server.lt 

如果您获得安装应用程序的路径,则可以从那里运行该应用程序

例如,要知道google-chrome所在的路径,请运行以下命令:

 whereis google-chrome 

您将获得如下路径:

 google-chrome: /usr/bin/google-chrome /usr/bin/X11/google-chrome /usr/share/man/man1/google-chrome.1 

现在,您可以通过执行两个命令来运行chrome:

 /usr/bin/google-chrome /usr/bin/X11/google-chrome 

注意:它将应用于所有已安装的应用程序。 此外,您可能无法获得路径/usr/bin/X11或者会得到不同的东西。

希望你喜欢这种方式找到路径并运行chrome 🙂

在Ubuntu 15.10中,这个命令非常有效

 google-chrome www.google.com 

您可以使用更多选项

 google-chrome --help 

输入以打开google-chrome ,然后exit google-chrome以关闭Chrome浏览器

类型

 google-chrome-stable 

我使用这个命令,它适用于我。 我也使用.deb包安装它。 所以这对你也有用。 在命令打开url后键入url。

我们也可以使用以下命令:

 gnome-www-browser 
 /opt/google/chrome/google-chrome 

如果它是Ubuntu 15.10,并且你从chrome网页下载它,然后使用命令行对其进行调整,那么它应该是:

 chrome google-chrome 

只需在你的终端输入“chromium-browser”。这肯定适用于Ubuntu分发的基本操作系统; Ubuntu本身也是如此