How to set default browser in Debian Linux

To set default browser in Debian or Ubuntu open terminal and write command:

sudo update-alternatives --config x-www-browser

As you can see, we have four alternatives of browsers, installed in operating system, just enter number of browser and press Enter.