Onur Özgür ÖZKAN

Php, Ruby, Kebab, Git Geek

Set the Default Browser on Ubuntu From the Command Line

Open your terminal

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

Choice your browser

1
2
3
4
5
6
7
8
9
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                    Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome   200       auto mode
  1            /usr/bin/firefox         40        manual mode
  2            /usr/bin/google-chrome   200       manual mode

Press enter to keep the current choice[*], or type selection number:

Thats all.