Linux下的命令行浏览器links介绍

假如你的Linux没有X11,没有ff,最小安装,没有wget,没有curl,等等工具,那又需要访问互联网怎么办呢?

Linux有一款自带的文本互联网浏览器:links,可以浏览简单网页,及测试网络端口连通性。

links –help

ELinks 0.9.2 – Text WWW browser

Usage: elinks [OPTION]… [URL]

Options:

-anonymous [0|1] Restrict to anonymous mode

-auto-submit [0|1] Autosubmit first form

-base-session <num> Clone session with given ID

-confdir <str> Set config dir to given string

-conffile <str> Configuration file name

-default-mime-type MIME type to assume for documents

-dump [0|1] Write formatted version of given URL to stdout

-dump-charset Codepage to use with -dump

-dump-width Width of document formatted with -dump

-eval Evaluate given configuration option

-force-html Assume the file is HTML

-,-h,-help Print usage help and exit

-long-help Print detailed usage help and exit

-config-help Print help for configuration options

-lookup Look up specified host

-no-connect [0|1] Run as separate instance

-no-home [0|1] Don’t use files in ~/.elinks

-session-ring <num> Connect to session ring with given ID

-source [0|1] Write the source of given URL to stdout

-stdin [0|1] Read document from stdin

-no-numbering [0|1] Do not number links in dump output

-touch-files [0|1] Touch files in ~/.elinks when running with -no-connect/-session-ring

-version Print version information and exit

使用举例:

links –dump

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...