一般大家用ubuntu的xwindows来看图形界面的东西,有没有想过在命令行模式下浏览网页呢?如果有就快去试试w3m命令吧!
先看看它的参数
- sucre@sucre-ubuntu:~$ w3m
- w3m version w3m/0.5.2, options lang=en,m17n,image,color,ansi-color,mouse,gpm,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,gopher,ipv6,alarm,mark,migemo
- usage: w3m [options] [URL or filename]
- options:
- -t tab set tab width
- -r ignore backspace effect
- -l line # of preserved line (default 10000)
- -I charset document charset
- -O charset display/output charset
- -B load bookmark
- -bookmark file specify bookmark file
- -T type specify content-type
- -m internet message mode
- -v visual startup mode
- -M monochrome display
- -N open URL of command line on each new tab
- -F automatically render frame
- -cols width specify column width (used with -dump)
- -ppc count specify the number of pixels per character (4.0...32.0)
- -ppl count specify the number of pixels per line (4.0...64.0)
- -dump dump formatted page into stdout
- -dump_head dump response of HEAD request into stdout
- -dump_source dump page source into stdout
- -dump_both dump HEAD and source into stdout
- -dump_extra dump HEAD, source, and extra information into stdout
- -post file use POST method with file content
- -header string insert string as a header
- +<num> goto <num> line
- -num show line number
- -no-proxy don't use proxy
- -4 IPv4 only (-o dns_order=4)
- -6 IPv6 only (-o dns_order=6)
- -no-mouse don't use mouse
- -cookie use cookie (-no-cookie: don't use cookie)
- -pauth user:pass proxy authentication
- -graph use graphic character
- -no-graph don't use graphic character
- -s squeeze multiple blank lines
- -W toggle wrap search mode
- -X don't use termcap init/deinit
- -title[=TERM] set buffer name to terminal title string
- -o opt=value assign value to config option
- -show-option print all config options
- -config file specify config file
- -help print this usage message
- -version print w3m version
- -reqlog write request logfile
- -debug DO NOT USE
简单的浏览网的方法为:
- w3m http://sucre.blog.51cto.com
效果图如下:
看到了黑黑的一片,不过我挺喜欢这种模式的,简单快捷,如果你想登陆或者在搜索框里面查找东西的话,首先你得把光标移动到输入框里面,然后按下键盘上的"A",这个时候在屏幕的下方就出来个输入的提示,输入完成后直接按回车,就这样慢慢的将要写的东西都写好,去登陆吧,哈哈,真的好好玩,感兴趣的朋友去试试啊~~~,如果要玩的更好,那就得好好研究一下w3m的参数了!~
本文转自sucre03 51CTO博客,原文链接:http://blog.51cto.com/sucre/383506,如需转载请自行联系原作者