Linux: command to open URL in default browser

Mot picture Mot · Feb 25, 2011 · Viewed 145.7k times · Source

What command we have to execute (from Java, but that should not matter) on Linux (different common distributions) to open a given URL in the default browser?

Answer

shellholic picture shellholic · Feb 25, 2011

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