LINKS2(1)
π LINKS2(1) β General Commands Manual π
okay bestie, welcome to the General Commands Manual page for LINKS2(1) β yes, that's the whole manpage name, and no, we are not skipping a single line of it. grab a snack π and get comfy, because this one is long and it comes in 2 parts, and this is part 1. every single flag is coming with us. no cap. π
πΈ NAME πΈ
links β a lynx-like alternative character mode WWW browser π¦
β¨ SYNOPSIS β¨
links2 [options] URL
π¦ DESCRIPTION π¦
okay so links2 is a text mode WWW browser with an ncurses interface, and it's genuinely giving main character energy. what it's serving:
- colors π
- correct table rendering β tables that actually line up, we are obsessed
- background downloading β¬οΈ
- a menu driven configuration interface π
- and slim code β she's on a diet and she is thriving π
Frames are supported. fr fr. πΌοΈ
you can have different file formats associated with external viewers π«Ά β links2 will hand stuff off to other programs when it needs to.
mailto: and telnet: are supported via external clients. iconic. β¨
and links2 can handle local (file://) or remote (http:// or ftp://) URLs. local bestie and internet bestie, both at once. π
π OPTIONS π
real talk first: most options can be set in the user interface or config file, so usually you do not need to care about them π. but we're listing every single one anyway, because that's literally the job of a manpage. buckle up, queen. π
reminder bestie: every default, every number, every0/1below is straight from the page. i am not making anything up. β¨
-helpβ print a help screen β¨-versionβ prints the links version number and exits. π-lookup <hostname>β does name lookup, like the commandhost. π-gβ run Links2 in graphics mode. if not given, Links2 will run in text mode. running in graphics mode means Links2 will probe all compiled-in graphics devices and run on the first found. if none are found, links2 will not run in graphics mode. this option works only if--enable-graphicswas given to./configure. π-no-gβ run in text mode (overrides a previous-g).-driver <driver name>β graphics driver to use. the drivers are:x,svgalib,fb,directfb,pmshell,atheos. the list of drivers will be shown if you give it an unknown driver. available drivers depend on your operating system and available libraries. π₯οΈ-mode <parameter>β pass a parameter to the graphics driver. on SVGAlib, this iswidthxheightxdepth(where depth is16,256,32K,64K,16Mor16M32) and it defines the graphics mode; on X the format isWIDTHxHEIGHTand it defines the window size.-display <x-display>β set Xwindow display.-force-htmlβ treat files with unknown type as html rather than text. (can be toggled with the'\'key) π-source <url>β write unformatted data stream to stdout.-dump <url>β write formatted document to stdout.-width <number>β for dump, the document will be formatted to this screen width (but it can still exceed it if lines can't be broken).-codepage <codepage>β for dump, convert output to the specified character set β for exampleiso-8859-2,windows-1250.-anonymousβ restrict links so that it can run on an anonymous account. no local file browsing. no downloads. executing of viewers is allowed, but the user can't add or modify entries in the association table. π-no-connectβ runs links2 as a separate instance β instead of connecting to an existing instance.-download-dir <path>β default download directory. (default: actual dir) π-language <language>β set user interface language.-max-connections <max>β maximum number of concurrent connections. (default: 10)-max-connections-to-host <max>β maximum number of concurrent connections to a given host. (default: 2)-retries <retry>β number of retries. (default: 3)-receive-timeout <sec>β timeout on receive. (default: 120)-unrestartable-receive-timeout <sec>β timeout on non restartable connections. (default: 600)-timeout-when-trying-multiple-addresses <sec>β timeout for connection when trying multiple addresses or when resuming a keepalive connection. (default: 3)-bind-address <ip address or interface name>β use a specific local IP address.-bind-address-ipv6 <ipv6 address or interface name>β use a specific local IPv6 address.-no-libeventβ don't use the libevent library.-no-openmpβ don't use OpenMP.-download-utime <0>/<1>β set the time of downloaded files to the last modification time reported by the server. π°οΈ-format-cache-size <num>β number of formatted document pages cached. (default: 5)-memory-cache-size <bytes>β cache memory in bytes. (default: 1048576)-image-cache-size <bytes>β cache memory in bytes. (default: 1048576)-font-cache-size <bytes>β cache memory in bytes. (default: 2097152)-aggressive-cache <0>/<1>β always cache everything regardless of the server's caching recomendations. many servers deny caching even if their content is not changing, just to get more hits and more money from ads. π-address-preference <0>/<1>/<2>/<3>/<4>β (default 0)0β use system default.1β prefer IPv4.2β prefer IPv6.3β use only IPv4.4β use only IPv6.-http-proxy <host:port>β host and port number of the HTTP proxy, or blank. (default: blank)-ftp-proxy <host:port>β host and port number of the FTP proxy, or blank. (default: blank)-https-proxy <host:port>β host and port number of the HTTPS proxy, or blank. (default: blank)-socks-proxy <user@host:port>β userid, host and port of Socks4a, or blank. (default: blank)-append-text-to-dns-lookups <text>β append text to dns lookups. it's useful for specifying a fixed tor exit node. (default: blank)-no-proxy-domains <domain,domain...>β no proxy for the specified domains. (default: blank)-only-proxies <0>/<1>β"1"means Links won't initiate any non-proxy connection. it's useful for anonymization with tor or similar networks. π΅οΈ-ssl.certificates <0>/<1>/<2>β (default 1)0β ignore invalid certificate.1β warn on invalid certificate.2β reject invalid certificate.-ssl.builtin-certificates <0>/<1>β (default 0; on DOS and OpenVMS default 1) use built-in certificates instead of system certificates.-ssl.client-cert-key <filename>β name of the PEM encoded file with the user private key for client certificate authentication.-ssl.client-cert-crt <filename>β name of the PEM encoded file with the user certificate for client certificate authentication.-ssl.client-cert-password <text>β password for the user private key.-async-dns <0>/<1>β asynchronous DNS resolver on(1)/off(0).-dns-over-https <url>β DNS over HTTPS url.-http-bugs.http10 <0>/<1>β (default 0)"1"forces using only the HTTP/1.0 protocol (useful for buggy servers that claim to be HTTP/1.1 compliant but are not)."0"enables using both HTTP/1.0 and HTTP/1.1.-http-bugs.allow-blacklist <0>/<1>β (default 1)"1"defaults to using a list of servers that have broken HTTP/1.1 support. when links2 finds such a server, it will retry the request with HTTP/1.0.-http-bugs.bug-no-accept-charset <0>/<1>β (default 0) do not send the Accept-Charset field of the HTTP header. because it's too long, some servers will deny the request. other servers will convert content to plain ascii when Accept-Charset is missing.-http-bugs.no-compression <0>/<1>β (default 0)"1"means links won't advertise HTTP compression support (but it will still accept compressed data). use it when you communicate with a server that has broken compression support.-http-bugs.retry-internal-errors <0>/<1>β (default 0) retry on internal server errors (50x).-http.fake-firefox <0>/<1>β (default 0) fake that the browser is Firefox in the HTTP header. π¦-http.do-not-track <0>/<1>β (default 0) send a "do not track" request in the HTTP header.-http.referer <0>/<1>/<2>/<3>/<4>β (default 0)0β do not send referer.1β send the requested URL as referer.2β send fake referer.3β send real referer.4β send real referer only to the same server.-http.fake-referer <string>β fake referer value.-http.fake-user-agent <string>β fake user agent value.-http.extra-header <string>β extra string added to the HTTP header.-ftp.anonymous-password <string>β password for anonymous ftp access.-ftp.use-passive <0>/<1>β use the ftpPASVcommand to bypass firewalls. π₯-ftp.use-erpt-epsv <0>/<1>β useEPRTandEPSVcommands instead ofPORTandPASV.-ftp.set-iptos <0>/<1>β set IP Type-of-service to high throughput on ftp connections.-smb.allow-hyperlinks-to-smb <0>/<1>β allow hyperlinks to the SMB protocol. disabling this improves security, because internet sites cannot exploit possible bugs in the SMB client. π‘οΈ-menu-font-size <size>β size of font in menu.-menu-background-color 0xRRGGBBβ set menu background color in graphics mode.RRGGBBare hex. π¨-menu-foreground-color 0xRRGGBBβ set menu foreground color in graphics mode.RRGGBBare hex. π¨-scroll-bar-area-color 0xRRGGBBβ set color of scroll bar area.RRGGBBare hex. π¨-scroll-bar-bar-color 0xRRGGBBβ set color of scroll bar.RRGGBBare hex. π¨-scroll-bar-frame-color 0xRRGGBBβ set color of scroll bar frame.RRGGBBare hex. π¨-bookmarks-file <file>β file to store bookmarks.-bookmarks-codepage <codepage>β character set of bookmarks file.-save-url-history <0>/<1>β save URL history on exit.-enable-cookies <0>/<1>β enable cookies. πͺ-save-cookies <0>/<1>β save cookies on exit.-max-cookie-age <fp-value>β maximum cookie age in days.0β unlimited.-display-red-gamma <fp-value>β red gamma of display. (default 2.2)-display-green-gamma <fp-value>β green gamma of display. (default 2.2)-display-blue-gamma <fp-value>β blue gamma of display. (default 2.2)-user-gamma <fp-value>β additional gamma. (default 1)-bfu-aspect <fp-value>β display aspect ration. (the page says "ration", and i am simply the messenger π )-dither-letters <0>/<1>β do letter dithering.-dither-images <0>/<1>β do image dithering.-display-optimize <0>/<1>/<2>β optimize for CRT (0), LCD RGB (1), LCD BGR (2).-gamma-correction <0>/<1>/<2>β type of gamma correction: (default 2)0β 8-bit (fast).1β 16-bit (slow).2β automatically detect according to the speed of the FPU.-overwrite-instead-of-scroll <0>/<1>β overwrite the screen instead of scrolling it (valid for svgalib and framebuffer). overwriting may or may not be faster, depending on hardware.-font <file>β font file for normal text.-font-bold <file>β font file for bold text.-font-monospaced <file>β font file for monospaced text.
and that's where part 1 stops, bestie π¦ β the options keep going, so part 2 is coming right up. don't go anywhere. π
-font-monospaced-bold<file> β the font file for monospaced bold text, bestie.-font-italic<file> β font file for italic text β¨-font-italic-bold<file> β font file for italic bold text.-font-monospaced-italic<file> β font file for monospaced italic text.-font-monospaced-italic-bold<file> β font file for monospaced italc bold text (yes the page rlly spells it "italc" and honestly? iconic. we keep her exactly as she is π ).-html-assume-codepage<codepage> β when the webpage refuses to say what codepage it's using, just assume this one. Default?ISO 8859-1. no cap.-html-hard-assume<0>/<1> β always use the charset from-html-assume-codepage, idc what the server said. main character behavior, honestly.-html-tables<0>/<1> β render tables. Give it(0)and tables get rendered like in lynx instead.-html-frames<0>/<1> β render frames.(0)means frames get rendered like in lynx.-html-break-long-lines<0>/<1> β break those never-ending lines inside<pre>sections π«Ά-html-images<0>/<1> β show links to unnamed images as[IMG].-html-image-names<0>/<1> β show the actual filename of an image instead of[IMG].-html-display-images<0>/<1> β display images in graphics mode π-html-image-scale<percent> β scale images in graphics mode.-html-bare-image-autoscale<0>/<1> β autoscale images that are being displayed full screen.-html-numbered-links<0>/<1> β number the links in text mode, so you can pick one fast by typing its number and hitting enter. lowkey genius.-html-table-order<0>/<1> β in text mode, walk through a table by rows(0)or by columns(1).-html-auto-refresh<0>/<1> β actually process the refresh to the other page(1), or just display a link to that page(0).-html-target-in-new-window<0>/<1> β allow html to open new windows.-html-margin<number of spaces> β the margin, in text mode.-html-user-font-size<size> β font size for pages in graphics mode.-html-text-color<0>β*<15>* β text color in text mode.-html-link-color<0>β*<15>* β link color in text mode.-html-background-color<0>β*<7>* β background color in text mode.-html-ignore-document-color<0>/<1> β ignore whatever colors the html document tries to force on you, in text mode. the audacity of that document, fr.-html-g-text-color0xRRGGBBβ text color in graphics mode.-html-g-link-color0xRRGGBBβ link color in graphics mode.-html-g-background-color0xRRGGBBβ background color in graphics mode.-html-g-ignore-document-color<0>/<1> β ignore colors specified in the html document, in graphics mode.
More options can be seen with links2 -h π
β¨ NAVIGATION KEYS β¨
The keys you may use while navigating are, bestie, and yes there's a lot of them:
ESCβ menu/escapeF9β menuF10β file menuTABβ next framePGDNβ page downSpaceβ page downPGUPβ page upbβ page upCursorDOWNβ next link/downCursorUPβ prev link/upINSβ scroll up^Pβ scroll upDELβ scroll down^Nβ scroll down[β scroll left]β scroll rightHOMEβ homeENDβ end of pageCursorRIGHTβ enter link/press buttonENTERβ enter link/press buttonCursorLEFTβ go backdβ download link/β search in the page?β search back in the pagenβ find next matchNβ find next match backwardsfβ zoom actual frame^Rβ reload pagegβ go to URLGβ edit the current URL and goto the result^Gβ edit the current link and goto the resultsβ bookmark managerqβ quit, close window if more windows are openQβ quit without asking π€=β document information\β toggle HTML source/rendered view
πΈ EDITING KEYS πΈ
These ones work while you're editing a line or jumping to a URL:
CursorRIGHTβ move rightCursorLEFTβ move leftHOMEβ jump at the beginning^Aβ jump at the beginningENDβ jump at the end^Eβ jump at the end^Xβ cut to clipboard (text mode only)^Bβ copy to clipboard^INSβ copy to clipboard^Vβ paste from clipboard (text mode only)ENTERβ enter lineBACKSPACEβ delete back character^Hβ delete back characterDELβ delete character^Dβ delete character^Uβ delete from beginning of the line^Kβ delete to the end of the line^Wβ auto complete line
π FILES π
~/.links2/links.cfgβ the perβuser configfile, and links2 creates it for you automatically, no effort required π«Ά
π PLATFORMS π
links2 is known to work on Linux, FreeBSD, Solaris, IRIX, HPUX, Digital Unix, AIX, OS/2, BeOS and Win32. she's versatile like that π
π BUGS π
okay so here's where it gets real. sit down.
- Can't connect to some FTP servers (Novell, NT). The connection just stays in "Request sent" state forever. awkward.
- Frames don't work if there's more frames with same name. Turn them off in such case, bestie.
- You can't upload large files; it takes lots of memory. like lots lots.
- You shouldn't press
'^Z'when you are in a viewer π
Please report any other bugs you find to Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> β he wants to know, fr fr.
π LICENSE π
links2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. periodt.
π¦ AUTHOR π¦
links2 was written by Mikulas Patocka, Karel 'Clock' Kulhavy, Petr 'Brain' Kulhavy, and Martin 'PerM' Pergel. See file AUTHORS for a list of people contributing to this project. so many icons in one project, we love to see it.
The homepage of links2 can be found at http://links.twibright.com/ β
This manual page was written by Peter Gervai <grin@tolna.net>, using excerpts from a (yet?) unknown links2 fan for the Debian GNU/Linux system (but may be used by others). Updated by Karel Kulhavy. mystery fan, wherever you are, you ate π
π₯ SEE ALSO π₯
and that's the whole page, bestie π this lil manual is from the links2 package, and she's dated Aug, 2006 β a whole elder but she still slays β¨ go read some web pages, you've earned it π
π¦ where this page comes from
- debian bookworm: links2 2.28-1+b2 Β· GPL-2.0-or-later WITH OpenSSL exception
- debian trixie: links2 2.29-2+b3 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu noble: links2 2.29-1build6 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu questing: links2 2.29-2
- ubuntu resolute: links2 2.29-2build1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu stonking: links2 2.29-2ubuntu1 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms