_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
lynx —
text web browser - usage and
tips
PROTOCOLS
Lynx can access HTTP(S), Gopher, FTP, WAIS and NNTP servers.
COMMAND LINE
| -dump | | dump formatted output to stdout. |
| -source | | dump html output to stdout. |
| -socks5_proxy=IP[:PORT] | | use socks5 proxy. |
SOCKS5
Lynx can use the environment variable SOCKS5_PROXY, the command line option or work through torsocks. It will not read a socks5 proxy set on with the http(s)_proxy environment variable.
SESSIONS
| -session=FILE | | read/save session from/to FILE. |
| -sessionin=FILE | | read session from FILE. |
| -sessionout=FILE | | save session to FILE. |
PROFILES
lynx does not have options for profiles. However different lynx.cfg, $HOME/~.lynxrc and/or session files could be used to emulate profiles.
OPTIONS
Options can be changed on lynx through the options menu (o) or by editing ~/.lynxrc.
Menu
To save the changes on the options menu, toggle "Save options to disk" and then "Accept changes".
| colors | | never, off, on (default), always. |
| User mode | | Novice (default), intermediate advanced, minimal. |
| Multi-bookmarks | | off (default), standard, advanced. |
USAGE
keys
| H | | help |
| g | | go to URL. |
| G | | edit current URL. |
| E | | edit current selected link. |
| d | | download selected file. |
Lynx does not have tabs, however, any link can be revisited by going to the visited links (V).
BOOKMARKS
Bookmarks can be a single bookmark file or multiple bookmark files. Multi-bookmarks has the following possible values: OFF (default), STANDARD, ADVANCED. It can be set in the Options menu > Multi-bookmarks or ~/.lynxrc > sub_bookmarks.
Add_bookmark_files
Options menu > Review/edit bookmarks files. The files can also be edited in ~/.lynxrc, eg.:
multi_bookmarkB=b.htmlOptions
| v | | view bookmarks files (files can be selected by selecting the corresponding letter to see all bookmarks). |
| a | | add bookmarks (when using multi-bookmarks, the bookmarks menu will be displayed to select the bookmark file). |
Multi-bookmarks use letters a-z to set the bookmarks files.
Add
- a: to add a bookmark.
- d,l,c: document (current document), link (selected link), cancel.
- If multi-bookmarks is set, the bookmarks menu will be displayed.
- Select the letter corresponding to the desired bookmarks file.
- Set the title for the bookmark.
- If multi-bookmarks is off, only the title needs to be set.
View
- v: will display the bookmarks or bookmarks files if multi-bookmarks is set.
- If multi-bookmarks is set, select the letter corresponding to the chosen bookmarks file to see the bookmarks.
JUMPS
Jumpfiles work similar to bookmarks but the items can also have parameters by adding %s to the url. Lynx will prompt the user to enter a parameter per %s in the url. Eg.: https://man.openbsd.org/%s. Jumps can also point to programs or executable scripts. See lynx samples directory for jump examples.
- NOTE: the list must be in alphabetical order.
Jumpfiles are defined in lynx.cfg:
JUMPFILE:PATH[:key][:prompt] key is necessary only
is multiple jumpfiles are specified, key will replace the current bind for
the specified key. Prompt will set the prompt displayed to the user.
The first item should be:
<dt>?<dd><a
href="PATH_TO_JUMPFILE">the list in this
jumpfile</a> to show the jumps in the file.
- j (or key defined for jumpfile)
- Jump shortcut.
- Enter parameter if required for the jump.
DIRED
Lynx can also be used for directory editing by using lynx on a
directory. lynx PATH_TO_DIR
| c | | create a (f)ile or (d)irectory. |
| r | | remove a file or directory. |
| e | | edit file. (Requires an editor to be set in ~/.lynxrc) |
Create
- c: to create a directory.
- f or d to create file or directory.
TODO
| - Add better examples. |
| - Split doc: bookmarks and jumpfiles. |
| - Check CGI Script options. |
| - Check mail options. |
| - Check NNTP options. |
| - Check additional cookies options. |
| - Check Downloader options. |
| - Check Editor options. |
| - Check keymap options. |
SEE ALSO
lynx_config , tor , text_links
- ArchLinux manpages: lynx(1) , links(1) , elinks(1) , w3m(1)
links
| - Thomas E. Dickey - Lynx developer (may be blocked in some countries) |
| - Mirror of Thomas E. Dickey (Accessible if the main site is blocked) |
| - Edbrowse, a Command Line Editor Browser |