The browser technology has shifted to graphical web-browsers such as Chrome, Firefox and, Safari. Still, there are people who are more Terminal savvy and like accessing information from the web through Terminal browsing. Command-line/Text-based web browsers are sometimes the only way to connect to the web. So let’s see how to install and use these Linux text-based web browsers through our Linux command-line, the Terminal?
In this article, we have used commands and procedures compatible with Ubuntu 18.04 LTS system.
You can open a Linux terminal through the dashboard or by pressing Ctrl+Alt+T shortcut. After this install one of the following web browser tools:
w3m Web Browser
To install w3m web browser enter the following command in terminal.
$ sudo apt-get install w3m w3m-img
Enter Y when the system prompts you to continue the installation and then this command line web browser is installed successfully on your system.
To verify installation run following command in a terminal which will display the install version of w3m.
$ w3m -version To browse the internet you have to use the following syntax in a terminal.
$ w3m [URL]
$ w3m www.google.com
Once you enter this command, the terminal display will show you this output.
You can access a link or move to the search bar by double-clicking it.
These are some basic operations you can perform on this utility:
Quit the program: Shift+Q
Open a new tab: Shift+T
Open a new URL: Shift+U
Go back one page: Shift+B
Lynx Web Browser
In order to install Lynx web browser, run following command in a terminal with root user login.
$ sudo apt-get install lynx
Enter Y when the system prompts you to continue with installation and Lynx web browser will be installed successfully on your system.
To verify installation check the version of Lynx installed by using the following command :
$ lynx -version
To browse the Internet through the Lynx utility use following syntax :
$ Lynx [URL]
The output screen for above example will be as follows :
Use the arrow keys to move to the different links on the page. Enter the text you want to search, search results will display when you hit return.
To know about more text-based web browsers visit this page.