I want to simply be able to open a website from a curl command. I haven't been able to find anything related as of yet. All the results that pop up are mainly for mobile apps and their respective development languages. I want to be able to do:
curl <some flag or option> google.com
And then the google.com webpage pops up. Is something like this possible?
CodePudding user response:
Lets collect the various ways to open a URL the default browser:
Ubuntu
sensible-browser google.com
or
xdg-open google.com
.
This is also answered here: https://askubuntu.com/questions/8252/how-to-launch-default-web-browser-from-the-terminal
Windows
explorer "google.com"
Answered here: https://stackoverflow.com/a/23039509/3717691
MacOS
open "google.com"
Answered here: https://stackoverflow.com/a/23039509/3717691