Search code examples
linuxbrowserdefault

Linux: command to open URL in default browser


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?


Solution

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