LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lynx

text-based web browser

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
Dump without link list
$ lynx -dump -nolist [url]
copy
Send a POST request
$ lynx -post_data [url] < [data_file]
copy
Set a custom user agent
$ lynx -useragent="[MyAgent/1.0]" [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.

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 list of references at end of document.
-post_data
Send form data via POST from stdin.
-useragent STRING
Set custom User-Agent header.
-auth USER:PASS
HTTP basic authentication credentials.
-head
Send a HEAD request and show headers.
-width N
Screen width for formatting (default 80).
-traversal
Crawl links starting from the URL.
--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
Kai