如何从命令行在网络浏览器中打开站点?

Mar*_* R. 4 ubuntu curl

我希望能够通过curl 命令打开网站。到目前为止我还没有找到任何相关的东西。弹出的所有结果主要针对移动应用程序及其各自的开发语言。我希望能够做到:

curl <some flag or option> google.com
Run Code Online (Sandbox Code Playgroud)

然后就会弹出 google.com 网页。这样的事情可能吗?

Jep*_*ppe 7

让我们收集一下在默认浏览器中打开 URL 的各种方法:

乌班图

sensible-browser google.com 或者 xdg-open google.com

这也在这里得到解答: https: //askubuntu.com/questions/8252/how-to-launch-default-web-browser-from-the-terminal

视窗

start chrome https://www.google.com/或者start firefox https://www.google.com/

在这里回答:https ://stackoverflow.com/a/32775952/3717691

苹果系统

open "google.com"

在这里回答:https ://stackoverflow.com/a/23039509/3717691