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