CentOS下安裝w3m,及w3m的使用


centos下安裝軟件的命令不是apt-get,而是yum,如果安裝w3m,利用sudo yum install w3m w3m-img -y即可

 

 

 

 

 

 

 

△△△△△△△△如果你用的是centos或readhat企業版,可以用下面的命令安裝。△△△△△△△△△△
sudo yum install w3m
△△△△△△△△如果你用的是Debian或ubuntu,可以用下面的命令安裝。 △△△△△△△△△△△△△
sudo apt-get install w3m
使用很簡單,命令后面跟網站地址就行了。例如訪問百度:
w3m www.baidu.com
然后你就可以看到網頁內容了,下面是顯示界面:

下面是一些基本的操作方法:
1. 四個方向鍵可以用來移動位置。
2. 移動到某個鏈接上時可以敲回車來進入鏈接。
3. 需要輸入或修改文本框的文字時,移動到文本框位置敲回車,然后界面最下面會有個TEXT:
這時輸入文字便可。輸入完再按回車,文字邊跳到網頁上的文本框里面了。
4. 需要退出時按q鍵即可。

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
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
    -e               EUC-JP
    -s               Shift_JIS
    -j               JIS
    -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上網方法:
   
   第一步,需要安裝一個名為w3m的軟件工具,打開終端,輸入如下命令

  sudo apt-get install w3m w3m-img -y 

  第二步,安裝好w3m之后,在終端里面啟動w3m,打開一個網址,比如w3m www.baidu.com 。現在是不是看到了只有在瀏覽器下面才能看到的百度首頁呢?

  如果您的終端不顯示中文請。安裝zhcon。安裝命令:

  sudo apt-get install zhcon -y

  好了,下面給出w3m的相關幫助文件。

  與vim常用命令vim常用命令集相似,h,j,k,l 可以分別用來做移動鍵,分別是左,下,上,右。如果你熟習vim操作的話這會是很方便的功能。 < 和 > 用來左右滾屏。

  按q就會提示你退出!

  在需要輸入的文本框內按回車,下面就會出現TEXT: ,這時你可以輸入你要搜索的文字。再按回車就是返回給文本框。這時再把光標移到”百度搜索”的那個按鍵,回車,就可以開始搜索了!

  使用 U 來重新輸入需要打開的網址。

  B 返回前一個頁面。

  多標簽操作!

  可以使用 T 按鍵來打開一個新標簽。

  在多個標簽內切換呢? 使用 { 和 }就可以了!

  使用 ESC-t 的話會打開標簽的菜單讓你選擇,功能類似系統中的alt-tab功能。

  C-q用於關於當前標簽頁。

  書簽

  C-a 添加書簽

  C-b 查看書簽

  查找

  / 向后查找當前頁面

  ? 向前查找當前頁面

  n 查找下一個已查找過的關鍵字

  N 向前查找已查找過的關鍵字

  幫助

  H 以上的選項在這里都可以看到!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM