In an era dominated by graphical web browsers like Chrome and Firefox, it's easy to forget the power and simplicity of text-based browsing. Back in the day, navigating the web often meant using a command-line interface (CLI) with tools like Lynx. While it might seem archaic, command-line web browsers are far from obsolete. They offer unique advantages, especially in specific scenarios. Let's explore three interesting web browsers that you can use in the Linux command line.
Why would anyone choose a text-based browser over a modern GUI? Here are a few compelling reasons:
Let's take a look at three command-line web browsers for Linux:
Links2 positions itself as a graphical version of the classic Links browser. What sets it apart is its ability to operate in both text and graphical modes.
links2
followed by a URL in the command line, it displays a text-based version of the website.links2 -g
opens the browser in a basic graphical interface.Links2 supports features like frames and tables and even offers basic JavaScript support. You can also navigate using a mouse in both text and graphical modes.
ELinks is another fork of the original Links browser. Similar to Links2, it supports tables, frames, and mouse-driven hyperlink navigation. However, one key difference is the lack of JavaScript support.
ELinks offers a unique menu system accessible by pressing the ESC
key. This menu allows you to enter and save URLs, manage bookmarks, and configure browser settings. Although ELinks lacks a dedicated graphical mode, it can display images by using external applications like ImageMagick or GraphicsMagick. By clicking on an image placeholder or selecting it and pressing v
, you can view the image in a separate window.
w3m is a text based web browser as well as a pager. Upon launching w3m, it reminds of the classic Lynx browser. It supports mouse navigation, displays tables, and accepts cookies.
Like ELinks, w3m allows you to view images using external programs. Although it lacks JavaScript support, w3m excels at rendering web pages cleanly and with rich colors, even for complex layouts.
To learn w3m's keyboard shortcuts, simply press H
while running the browser.
While graphical browsers dominate the web, command-line browsers are still valuable tools for specific tasks. Whether you need a resource-efficient browser for a low-powered system, want to browse the web without intrusive ads, or simply prefer the command line, Links2, ELinks, and w3m offer viable solutions.
By understanding the strengths and weaknesses of each browser, you can choose the one that best fits your needs and take a step back into the roots of the internet.