| W3M(1) | General Commands Manual | W3M(1) |
w3m - a text based web browser and pager
w3m [OPTION]... [ file | URL ]...
w3m is a text based browser which can display local or remote web pages as well as other documents. It is able to process HTML tables and frames but it ignores JavaScript and Cascading Style Sheets. w3m can also serve as a pager for text files named as arguments or passed on standard input, and as a general purpose directory browser.
w3m organizes its content in buffers or tabs, allowing easy navigation between them. With the w3m-img extension installed, w3m can display inline graphics in web pages. And whenever w3m's HTML rendering capabilities do not meet your needs, the target URL can be handed over to a graphical browser with a single command.
For help with runtime options, press “H” while running w3m.
When given one or more command line arguments, w3m will handle targets according to content type. For web, w3m gets this information from HTTP headers; for relative or absolute file system paths, it relies on filenames.
With no argument, w3m expects data from standard input and assumes “text/plain” unless another MIME type is given by the user.
If provided with no target and no fallback target (see for instance option -v below), w3m will exit with usage information.
Command line options are introduced with a single “-” character and may take an argument.
Experimental options might change in the future or even be removed. Feedback to the author is highly welcome.
If -R is given, w3m will restore a session from a session file. If no session file is provided with -session the default session file is used. The default session file will be deleted after restoring a session when exiting w3m. If a session file is given it will not be deleted. If URLs or files were given as parameters they will be loaded after restoring the session and added to the first tab. If -N and -R are given the old session is restored as is and any new buffer are opened in separate tabs. Note: Session management is still an experimental feature and might change in the future!
$ cat header.html footer.html | w3m -T text/html
$ w3m -N config.old config
$ w3m -M http://w3m.sourceforge.net
$ w3m -o auto_image=TRUE http://w3m.sourceforge.net
$ w3m -m nntp://news.aioe.org/comp.os.linux.networking
$ w3m -post - http://example.com/form.php <<<'a=0&b=1'
$ w3m -cols 40 foo.html > foo.txt
$ w3m -B -o display_link_number=1 > out.txt
$ w3m -T text/html -I EUC-JP -O UTF-8 < foo.html > foo.txt
$ w3m -v
w3m recognises the environment variable WWW_HOME as defining a fallback target for use if it is invoked without one.
If the W3M_DIR environment variable is set to a directory name, w3m will store its user files there instead of under the ~/.w3m directory.
The default locations of some files are listed below. These locations can be altered via the W3M_DIR environment variable.
README and example files are to be found in the doc directory of your w3m installation. Recent information about w3m may be found on the project's web pages at https://w3m-pager.org
w3m has incorporated code from several sources. Users have contributed patches and suggestions over time.
Akinori ITO, and others. This version is maintained by Rene Kita <mail@rkta.de>. Use <~rkta/w3m@lists.sr.ht> to contact the developers.
| 2025-06-07 | w3m 0.5.5 |