sensible-browser
The command line tool "sensible-browser" is used in Linux-based operating systems to open a URL in the default web browser. It is typically used when you want to open a specific web page or a URL from the command line without having to manually open the browser and paste the URL.
The tool works by examining the available web browsers and picking the most appropriate one to open the URL. It does this by checking the $BROWSER environment variable and alternatives like x-www-browser and gnome-www-browser.
If the $BROWSER variable is not set, sensible-browser checks for available browsers like Firefox, Chrome, Opera, and others installed on the system and chooses the one that is most frequently used or commonly associated with opening URLs.
Using sensible-browser is straightforward as you simply need to type "sensible-browser" followed by the URL you want to open. It makes it convenient to quickly access websites and web pages from the command line without having to manually open the browser.
This command line tool is part of the sensible-utils package, which offers similar utilities designed to make decisions based on the system's configuration and user preferences. sensible-browser is commonly used in scripts or command line operations where automating the web browsing process becomes necessary.
List of commands for sensible-browser:
-
sensible-browser:tldr:3c061 sensible-browser: Open a URL in the default browser.$ sensible-browser ${url}try on your machineexplain this command
-
sensible-browser:tldr:7bbc5 sensible-browser: Open a new window of the default browser.$ sensible-browsertry on your machineexplain this command