LinuxCommandLibrary

lynx

TLDR

Browse website

$ lynx [https://example.com]
copy
Browse local file
$ lynx [file.html]
copy
Dump page as text
$ lynx -dump [url]
copy
Accept cookies
$ lynx -accept_all_cookies [url]
copy
Download file
$ lynx -source [url] > [file]
copy
Use specific config
$ lynx -cfg=[config.cfg] [url]
copy

SYNOPSIS

lynx [options] [url]

DESCRIPTION

lynx is a text-based web browser. It renders HTML in the terminal without graphics.
The tool is useful for scripting, accessibility, and browsing on servers. Supports links and forms.
lynx is a terminal web browser.

PARAMETERS

URL

URL or file to browse.
-dump
Output page as text.
-source
Output page source.
-accept_all_cookies
Accept all cookies.
-cfg FILE
Configuration file.
-nolist
Dump without link list.
--help
Display help information.

CAVEATS

No JavaScript support. No images. Keyboard navigation. Limited CSS support.

HISTORY

Lynx was created at the University of Kansas in 1992, becoming one of the oldest web browsers still maintained.

SEE ALSO

w3m(1), links(1), curl(1), wget(1)

Copied to clipboard