Home » 2015 » January » 12 » W3M : A text based web browser and pager from Linux terminal

7:04 PM
W3M : A text based web browser and pager from Linux terminal

w3m - this is a command line tool in linux to start a text based web browser. It can open a remote or local webpage in terminal listing all links,tables and other texts on the page. 

       w3m [options] [URL or filename]

       Use "w3m -h" to display a complete list of current options.


  •  w3m  is  a World Wide Web (WWW) text based client. It has English and Japanese help files and an option menu and can be configured to use either language.
  • It will display hypertext markup language (HTML) documents containing links to files residing on the local system, as well as  files  residing on  remote  systems. 
  • It  can  display HTML tables and frames.  In addition, it can be used as a "pager" in much the same manner as "more" or "less".
  • Current versions of w3m run on Unix (Solaris, SunOS, HP-UX, Linux, FreeBSD, and EWS4800) and on Microsoft Windows 9x/NT.
  • To better understand w3m browser, simply create an HTML page with some links, texts, tables etc in it and open the local page using w3m. Try to understand the navigation.
  • Inside w3m, do RIGHT CLICK, get more pop up menu.
  • To move from one link to another in w3m, use up down keys. When your cursor is on that link, press ENTER to go to that link.
  • Quitting from w3m is similar to vim editor. Just press ":q". It will prompt for yes or no. Type "y" to exit from w3m.


  • At start up, w3m will load any local file or remote URL specified at the command line. 
  • To scroll up use "k" and to scroll down use "j".
  • For more help with runtime options, press "H" inside w3m pager.
  • Press "SHIFT +U" to goto a url.

See below is the help in w3m runtime:


Command line options are:
-header string
              insert string as a header

+<num> goto <num> line

-pauth user:pass
              proxy authentication

-S     squeeze multiple blank lines

       To use w3m as a pager:
              $ ll | w3m

       Use w3m to open google.com

       $ w3m www.google.com













To use w3m to translate HTML files:
              $ cat foo.html | w3m -T text/html

              $ cat foo.html | w3m -dump -T text/html >foo.txt


Category: Open System-Linux | Views: 1322 | Added by: shanky | Tags: linux command line browser, command line browser, text based web browser in linux, w3m browser in linux, w3m | Rating: 0.0/0

Related blogs

You may also like to see:

[2015-05-25][Open System-Linux]
Password-less Login to Linux/Unix Servers in Putty
[2014-12-03][Open System-Linux]
GREP command in Linux to search for a pattern
[2014-09-21][Open System-Linux]
How to define command prompt strings in Linux : what are $PS1, $PS2, $PS3 and $PS4?
[2017-01-21][Open System-Linux]
Useful tips and tricks while working in Linux.
[2014-11-19][Open System-Linux]
ETHTOOL : A tool in Linux to display or change ethernet card setting

Total comments: 0