日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

w3m linux,Linux 终端浏览器 w3m

發布時間:2024/9/3 linux 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 w3m linux,Linux 终端浏览器 w3m 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

搜索熱詞

三款比較有名的 w3m、links2、lynx、其中w3m 對中文的支持很好,沒出現亂碼,而那兩款都會有亂碼

w3m 安裝

sudo apt-get install w3m

sudo apt-get install w3m w3m-img

如果出現亂碼,可以用w3m打開任意網頁,鍵盤鍵入o,然后將顯示語言調整為chinese

如果你的locale不是gbk的話還是會亂碼的。所以運行 export LC_ALL=zh_CN.GBK

w3m支持鼠標拖拽功能,w3m的基本鍵

a 在文本框里輸入文字

g 頁面頂端

s 切換歷史(buffer)

S 保存網頁至文件

v 網頁/源碼切換

h j k l 左下上右,和vim同

w 以word右進

Tab 在各連接之間切換

H 顯示幫助

q 退出,會有提示的

j,k,l,h 移動光標,就像vim中一樣

J/K 向下/向上滾屏

> 左右滾屏

T 打開一個新標簽頁

Esc-t 打開所有標簽頁,供你選擇,使用jk來上下移動

{/} 在標簽頁中切換 當然也可以用鼠標點擊切換

U 輸入新的網址

B 后退

Ctrl+q 關閉當前標簽頁

/ 向后查找當前頁

? 向前查找當前頁

w3m -help可以顯示幫助信息,一些w3m的基本命令

下面是w3m -help 回顯的內容:

usage: w3m [options]

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

+ goto 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 有一個功能是自動登錄需要用戶名和密碼的網站

追加 ~/.w3m/passwd 文件:

host host-name

port port-number

realm Username for *****: ***** 的那一部分

login user

password password

注意一點,realm的值是后面星號的部分。比如

提示 "Username for trac:",那 realm 對應的值是 trac

最后將 passwd的訪問權限改成600

總結

以上是編程之家為你收集整理的Linux 終端瀏覽器 w3m全部內容,希望文章能夠幫你解決Linux 終端瀏覽器 w3m所遇到的程序開發問題。

如果覺得編程之家網站內容還不錯,歡迎將編程之家網站推薦給程序員好友。

本圖文內容來源于網友網絡收集整理提供,作為學習參考使用,版權屬于原作者。

總結

以上是生活随笔為你收集整理的w3m linux,Linux 终端浏览器 w3m的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。