一般大家用ubuntu的xwindows来看图形界面的东西,有没有想过在命令行模式下浏览网页呢?如果有就快去试试w3m命令吧!

先看看它的参数

 
  
  1. sucre@sucre-ubuntu:~$ w3m  
  2. w3m version w3m/0.5.2, options lang=en,m17n,p_w_picpath,color,ansi-color,mouse,gpm,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,gopher,ipv6,alarm,mark,migemo  
  3. usage: w3m [options] [URL or filename]  
  4. options:  
  5.     -t tab           set tab width  
  6.     -r               ignore backspace effect  
  7.     -l line          # of preserved line (default 10000)  
  8.     -I charset       document charset  
  9.     -O charset       display/output charset  
  10.     -B               load bookmark  
  11.     -bookmark file   specify bookmark file  
  12.     -T type          specify content-type  
  13.     -m               internet message mode  
  14.     -v               visual startup mode  
  15.     -M               monochrome display  
  16.     -N               open URL of command line on each new tab  
  17.     -F               automatically render frame  
  18.     -cols width      specify column width (used with -dump)  
  19.     -ppc count       specify the number of pixels per character (4.0...32.0)  
  20.     -ppl count       specify the number of pixels per line (4.0...64.0)  
  21.     -dump            dump formatted page into stdout  
  22.     -dump_head       dump response of HEAD request into stdout  
  23.     -dump_source     dump page source into stdout  
  24.     -dump_both       dump HEAD and source into stdout  
  25.     -dump_extra      dump HEAD, source, and extra information into stdout  
  26.     -post file       use POST method with file content  
  27.     -header string   insert string as a header  
  28.     +<num>           goto <num> line  
  29.     -num             show line number  
  30.     -no-proxy        don't use proxy  
  31.     -4               IPv4 only (-o dns_order=4)  
  32.     -6               IPv6 only (-o dns_order=6)  
  33.     -no-mouse        don't use mouse  
  34.     -cookie          use cookie (-no-cookie: don't use cookie)  
  35.     -pauth user:pass proxy authentication  
  36.     -graph           use graphic character 
  37.     -no-graph        don't use graphic character 
  38.     -s               squeeze multiple blank lines  
  39.     -W               toggle wrap search mode  
  40.     -X               don't use termcap init/deinit  
  41.     -title[=TERM]    set buffer name to terminal title string  
  42.     -o opt=value     assign value to config option 
  43.     -show-option     print all config options  
  44.     -config file     specify config file  
  45.     -help            print this usage message  
  46.     -version         print w3m version  
  47.     -reqlog          write request logfile  
  48.     -debug           DO NOT USE  

简单的浏览网的方法为:

 
  
  1. w3m http://sucre.blog.51cto.com 

效果图如下:

 

看到了黑黑的一片,不过我挺喜欢这种模式的,简单快捷,如果你想登陆或者在搜索框里面查找东西的话,首先你得把光标移动到输入框里面,然后按下键盘上的"A",这个时候在屏幕的下方就出来个输入的提示,输入完成后直接按回车,就这样慢慢的将要写的东西都写好,去登陆吧,哈哈,真的好好玩,感兴趣的朋友去试试啊~~~,如果要玩的更好,那就得好好研究一下w3m的参数了!~