logo32 发表于 2013-1-31 10:45:40

linux下的命令行浏览器links

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

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

links --help
ELinks 0.9.2 - Text WWW browser

Usage: elinks ...

Options:
-anonymous       Restrict to anonymous mode
-auto-submit     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          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    Run as separate instance
-no-home       Don't use files in ~/.elinks
-session-ring <num>   Connect to session ring with given ID
-source          Write the source of given URL to stdout
-stdin           Read document from stdin
-no-numbering    Do not number links in dump output
-touch-files     Touch files in ~/.elinks when running with -no-connect/-session-ring
-version            Print version information and exit



使用举例:

links --dump www.baidu.com
页: [1]
查看完整版本: linux下的命令行浏览器links