Linux: command to open URL in default browser Linux: command to open URL in default browser linux linux

Linux: command to open URL in default browser


The most cross-distribution one is xdg-open http://stackoverflow.com


I believe the simplest method would be to use Python:

python -m webbrowser "http://www.example.com/"


on ubuntu you can try gnome-open.

$ gnome-open http://www.google.com