_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
lynx —
text web browser - usage, config and
tips
CONFIGURATION
Lynx has two configuration files, different configuration options can be configured in each file: ~/.lynxrc and /etc/lynx.cfg.
lynxrc
The file is saved to $HOME/.lynxrc, there is no argument to change
this. To change the location of this file
HOME=ALT_HOME_FOR_LYNX lynx .
/etc/lynx.cfg
This is the default location, this file can be changed
lynx -cfg=PATH_TO_LYNXCFG .
STARTFILE:HOME_URL DEFAULT_INDEX_FILE:HOME_URL|INDEX_FILE
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 option for profiles, but 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 link. |
| G | | edit current link. |
| E | | edit current selected link. |
| d | | download selected file. |
Lynx does not have tabs, however, the visited links are stored in the session, any link can be revisited by going to the visited links (V).
BOOKMARKS
bookmarks can be a single bookmark file or multiple bookmark files can be defined by setting Multi-bookmarks in the options menu or sub_bookmarks in ~/.lynxrc.
To use multiple bookmark files, the files need to be defined through the options menu > Review/edit bookmarks files or by setting them in ~/.lynxrc.
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
Lynx also has jumpfiles available, they 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.
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. |
SEE ALSO
- ArchLinux manpages: lynx(1)
links
| - Thomas E. Dickey - Lynx developer (may be blocked in some countries) |
| - Mirror of Thomas E. Dickey - Lynx developer (Accessible if the main site is blocked) |