← 返回命令列表

Linux command

links 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Visit

links https://example.com

Dump

links -dump https://example.com

Dump

links -width 80 -dump https://example.com

Example

links -anonymous https://example.com

Example

links -source https://example.com

说明

links is a text-mode web browser for the terminal. It supports tables, frames, and basic forms rendering, making it useful for browsing documentation or using the web from servers without a graphical environment.

参数

-anonymous
Apply restrictions for anonymous browsing (no local file access or downloads)
-dump
Write rendered page as plain text to stdout
-source
Write page source to stdout
-width _number_
Set screen width for dump output
-codepage _codepage_
Convert dump output to specified character set
-enable-cookies _0|1_
Enable (1) or disable (0) cookies
-force-html
Treat files with unknown type as HTML rather than text
-html-numbered-links _0|1_
Number links in text mode for quick selection
-html-margin _spaces_
Set margin width in text mode
-no-connect
Run as a separate instance instead of connecting to an existing one
-download-dir _path_
Set default download directory
-max-connections _max_
Maximum concurrent connections (default: 10)
-receive-timeout _sec_
Timeout on receive in seconds (default: 120)

FAQ

What is the links command used for?

links is a text-mode web browser for the terminal. It supports tables, frames, and basic forms rendering, making it useful for browsing documentation or using the web from servers without a graphical environment.

How do I run a basic links example?

Run `links https://example.com` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -anonymous do in links?

Apply restrictions for anonymous browsing (no local file access or downloads)