Contents
How do I launch a browser in Linux?
Write out the below-given command to know the default browser of your Linux system.
- $ xdg-settings get default-web-browser.
- $ gnome-control-center default-applications.
- $ sudo update-alternatives –config x-www-browser.
- $ xdg-open
- $ xdg-settings set default-web-browser chromium-browser.desktop.
How do I open a browser in terminal?
The steps are below :
- Edit ~/. bash_profile or ~/. zshrc file and add the following line alias chrome=”open -a ‘Google Chrome'”
- Save and close the file.
- Logout and relaunch Terminal.
- Type chrome filename for opening a local file.
- Type chrome url for opening url.