Lynx in Termux – Install and Use Text-Based Web Browser

Lynx is a simple text-based web browser that allows you to browse websites directly from the Termux terminal. It displays web pages using text and lets you navigate through links without a graphical interface. You can easily install and use Lynx in Termux with simple commands.

Here’s what you can do with Lynx in Termux:

  • Browse websites from the terminal.
  • Open web pages using text.
  • Search and read online content.
  • Use a lightweight web browser.
  • Browse without a graphical interface.
  • Explore websites using simple keyboard controls.

Install Lynx in Termux

Below are the simple commands to install Lynx in Termux. Copy and run each command one by one to install the text-based web browser.

Update Termux packages.

pkg update && pkg upgrade -y

Install Lynx.

pkg install lynx -y

Lynx is now installed and ready to use.

Use Lynx in Termux

After installing Lynx, you can open any website from the Termux terminal.

Open a website.

lynx https://duckduckgo.com

You can also open your preferred website.

lynx https://example.com

Lynx will load the website and display its text content inside the terminal.

Use the arrow keys to move between links and press Enter to open a selected link.

More Lynx Usage Commands

Display the help menu.

lynx -help

Open a website and display its contents.

lynx -dump https://example.com

Open a website and read the content page by page.

lynx -dump https://example.com | less

Display the HTML source of a webpage.

lynx -source https://example.com

Send a HEAD request and display the HTTP headers.

lynx -head https://example.com

Display only the links found on a webpage.

lynx -listonly -dump https://example.com

Display webpage links without link numbers.

lynx -listonly -nonumbers -dump https://example.com

Set the terminal width while displaying webpage content.

lynx -width=80 https://example.com

Enter a website URL and Lynx will load the page, you can navigate through text and links using your keyboard.

End Note

Lynx is a simple web browser that brings text-based internet in the terminal. It is a great tool for users who want to explore websites, read online content, and learn how terminal-based browsers work.

SHARE THIS POST: