w3m version w3m/0.5.3+git20230121, options lang=en,m17n,image,color,ansi-color,mouse,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
-B load bookmark
-bookmark file specify bookmark file
-T type specify content-type
-m internet message mode
-v visual startup mode
-M monochrome display
-H use high-intensity colors
-N open URL of command line on each new tab
-F automatically render frames
-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)
-insecure use insecure SSL config options
-no-mouse don't use mouse
-cookie use cookie (-no-cookie: don't use cookie)
-graph use DEC special graphics for border of table and menu
-no-graph use ASCII character for border of table and menu
-s squeeze multiple blank lines
-W toggle search wrap 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
-debug use debug mode (only for debugging)
-reqlog write request logfile
-help print this usage message
-version print w3m version
Options (44)
| Option | Description | Source |
|---|---|---|
-t tab | set tab width to num columns. | help + man |
-r | use caret notation to display special escape characters (such as ANSI escapes or nroff-style backspaces for bold and underlined characters) instead of processing them | help + man |
-l line | number of lines preserved internally when receiving plain text from stdin (default 10,000) | help + man |
-I charset | user defined character encoding of input data | help + man |
-O charset | user defined character encoding of output data | help + man |
-B | with no other target defined, use the bookmark page for startup | help + man |
-bookmark file | use file instead of the default bookmark.html file | help + man |
-T type | explicit characterization of input data by MIME type | help + man |
-m | Render the body of Usenet messages according to the header “Content-type” | help + man |
-v | with no other target defined, welcome users with a built-in page | help + man |
-M | monochrome display | help + man |
-H | use high-intensity colors | help + man |
-N | distribute multiple command line arguments to tabs. | help + man |
-F | automatically render frames | help + man |
-cols width | specify column width (used with -dump) | help + man |
-ppc count | specify the number of pixels per character (4.0...32.0) | help + man |
-ppl count | specify the number of pixels per line (4.0...64.0) | help + man |
-dump | dump formatted page into stdout | help + man |
-dump_head | dump response of a HEAD request for a URL into stdout | help + man |
-dump_source | dump the page's source code into stdout | help + man |
-dump_both | dump HEAD, and source code for a URL into stdout | help + man |
-dump_extra | dump HEAD, source code, and extra information for a URL into stdout | help + man |
-post file | use POST method to upload data defined in file. | help + man |
-header string | append string to the HTTP(S) request. | help + man |
-num | display each line's number | help + man |
-no-proxy | do not use proxy | help + man |
-4 | IPv4 only (-o dns_order=4) | help + man |
-6 | IPv6 only (-o dns_order=6) | help + man |
-insecure | use insecure SSL config options, alias for -o ssl_cipher=ALL:eNULL:@SECLEVEL=0 -o ssl_min_version=all -o ssl_forbid_method= -o ssl_verify_server=0 | help + man |
-no-mouse | deactivate mouse support | help + man |
-cookie, -no-cookie | use stored cookies and accept new ones, or do neither | help + man |
-graph | use or do not use graphic characters for drawing HTML table and frame borders | help + man |
-no-graph | use ASCII character for border of table and menu | help |
-s | squeeze multiple blank lines into one | help + man |
-W | toggle wrapping mode in searches | help + man |
-X | do not initialize/deinitialize the terminal | help + man |
-title TERM | use the buffer name as terminal title string. | help + man |
-o opt=value | modify one configuration item with an explicitly given value; | help + man |
-show-option | show all available configuration options | help + man |
-config file | use file instead of the default configuration file | help + man |
-debug | use debug mode (only for debugging) | help + man |
-reqlog | log headers of HTTP communication in file ~/.w3m/request.log | help + man |
-help | show a summary of compiled-in features and command line options | help + man |
-version | show the version of w3m | help + man |
Examples (10) from the manual page, untested
cat header.html footer.html | w3m -T text/html
Combine snippets of HTML code and preview the pagew3m -N config.old config
Compare two files using tabsw3m -M http://w3m.sourceforge.net
Display web content in monochrome terminalw3m -o auto_image=TRUE http://w3m.sourceforge.net
Display embedded graphicsw3m -m nntp://news.aioe.org/comp.os.linux.networking
Display content from Usenetw3m -post - http://example.com/form.php <<<'a=0&b=1'
Upload data for a URL using the POST methodw3m -cols 40 foo.html > foo.txt
Convert an HTML file to plain text with a defined line lengthw3m -B -o display_link_number=1 > out.txt
Output the bookmarks page as text with an appended list of linksw3m -T text/html -I EUC-JP -O UTF-8 < foo.html > foo.txt
Conversion of file format and character encodingw3m -v
Welcome users with a built-in page