LinuxCommandLibrary

links2

Browse the web in text mode

TLDR

Visit a website in graphics mode

$ links2 -g [https://example.com]
copy

SYNOPSIS

links2 [options] [URL | file]

PARAMETERS

-g
    Force graphics mode (SVGALIB or X windows).

-f
    Force frames even if not supported by terminal.

-http-proxy
    Sets the HTTP proxy to use.

-anonymous
    Disables sending referer header.

-source
    Dumps the document source.

-dump
    Dumps the formatted document to standard output.

-dump-width
    Sets the output width for -dump mode.

-default-colors
    Uses default colors (ignored if using a color config file).

-driver
    Specifies a particular graphics driver (svgalib only).

-version
    Displays the version number and exits.

-help
    Displays help information.

URL | file
    The URL or local file to open.

DESCRIPTION

links2 is a text-based web browser, similar to Lynx but with support for HTML frames, tables, and basic JavaScript. It offers a user-friendly interface for browsing the web from a terminal. It's designed to be lightweight and fast, making it suitable for low-bandwidth connections or systems with limited resources. links2 is available in graphics (using svgalib or X) and text mode. The graphics mode supports mouse operation, but in text mode it can be controlled using only keyboard. links2 supports HTTP, HTTPS, FTP, Gopher, finger and local file access. It also offers features like bookmarking, history, and cookie management. It uses caching to reduce network usage. Supports SSL encryption via OpenSSL.

CAVEATS

JavaScript support is limited and may not render complex pages correctly. Frame support can be inconsistent depending on terminal emulators. Not all CSS features are implemented.

CONFIGURATION

links2 reads its configuration from ~/.links2/.
Keybindings, colors and other options can be customized by editing the configuration files in this directory.

SSL SUPPORT

links2 uses OpenSSL for secure connections.
Ensure OpenSSL is installed and configured correctly for proper SSL functionality.

SEE ALSO

lynx(1), w3m(1)

Copied to clipboard