假如你的Linux没有X11,没有ff,最小安装,没有wget,没有curl,等等工具,那又需要访问互联网怎么办呢?
Linux有一款自带的文本互联网浏览器:links,可以浏览简单网页,及测试网络端口连通性。
links--help
ELinks0.9.2-TextWWWbrowser
Usage:elinks[OPTION]...[URL]
Options:
-anonymous[0|1]Restricttoanonymousmode
-auto-submit[0|1]Autosubmitfirstform
-base-session<num>ClonesessionwithgivenID
-confdir<str>Setconfigdirtogivenstring
-conffile<str>Configurationfilename
-default-mime-typeMIMEtypetoassumefordocuments
-dump[0|1]WriteformattedversionofgivenURLtostdout
-dump-charsetCodepagetousewith-dump
-dump- widthWidthofdocumentformattedwith-dump
-evalEvaluategivenconfigurationoption
-force-htmlAssumethefileisHTML
-,-h,-helpPrintusagehelpandexit
-long-helpPrintdetailedusagehelpandexit
-config-helpPrinthelpforconfigurationoptions
-lookupLookupspecifiedhost
-no-connect[0|1]Runasseparateinstance
-no-home[0|1]Don'tusefilesin~/.elinks
-session-ring<num>ConnecttosessionringwithgivenID
-source[0|1]WritethesourceofgivenURLtostdout
-stdin[0|1]Readdocumentfromstdin
-no-numbering[0|1]Donotnumberlinksindumpoutput
-touch-files[0|1]Touchfilesin~/.elinkswhenrunningwith-no-connect/-session-ring
-versionPrintversioninformationandexit
使用举例:
links--dump