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.
To install Lynx in Ubuntu:
sudo apt install lynx
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.
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
We can use ↑ and ↓ to select a link and use → or ⏎
source: Lynx Users Guide: Navigating hypertext documents with Lynx
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
To see source, press: \.
source: Lynx Users Guide: Viewing the HTML document source and editing documents
To download source file, press: d or D.
source: Lynx Users Guide: Downloading and Saving source files
There are lot of options available in Lynx. We can access the by pressing o.
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