Lynx Cheat Sheet

< Blog

A quick reference to Lynx, a text-based web browser.

Created on: 2020-06-02

Tag: cheat_sheet, living_in_the_shell

The bottom of the Lynx show all the useful keyboard keys to help navigation easier but here are few that I found most used and worth taking note.

Install

To install Lynx in Ubuntu:

sudo apt install lynx

Go to a website

To go to a website:

lynx protocol://domain.tld

OR

lynx domain.tld

From inside the browser, press: g and then protocol://domain.tld OR domain.tld

Or we can edit the existing URL by typing Shift + g.

source: Lynx Users Guide: Starting Lynx with a Remote File

Exit from Lynx

To exit from Lynx, press: q.

This will invoke a yes/no prompt. Type y to exit. To exit without prompt press Shift + q.

source: Lynx Users Guide: Leaving Lynx

Go back

To go back, press: .

source: Lynx Users Guide: Navigating hypertext documents with Lynx

Save rendered file to disk

To save file to disk, press: p.

Now we are presented with options to save file, mail. print to screen or print to a connected printer. Using the arrow key select the 'Save to a local file'. Now we need to enter a file name with that the file will be saved.

source: Lynx Users Guide: Printing, Mailing, and Saving rendered files to disk

See source

To see source, press: \.

source: Lynx Users Guide: Viewing the HTML document source and editing documents

Download source file

To download source file, press: d or D.

source: Lynx Users Guide: Downloading and Saving source files

Options

There are lot of options available in Lynx. We can access the by pressing o.

Bookmarks

To save a bookmark, press:

a

Now press s to bookmark the page, l to bookmark selected link or c to cancel.

Press v to see all bookmark file and v to remove a bookmark. Press kbd:e to edit if you have external editor configured, which can be done with Options

Source