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. 

FORMAT
       w3m [options] [URL or filename]

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


DESCRIPTION
 

  •  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.


OPTIONS

  • 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


EXAMPLES
       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

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

 
 

Category: Open System-Linux | Views: 1131 | 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-01-18][Open System-Linux]
The JAR archiving tool in Linux
[2014-06-05][Open System-Linux]
SCRIPT command: Save your Linux sessions automatically
[2015-06-16][Open System-Linux]
Alien command : convert files from one form to another, install binary packages
[2014-10-12][Open System-Linux]
GETENT command in linux to get entries from administrative database
[2014-02-19][Open System-Linux]
Shift Key is not working!! Mapping keyboard keys from one to another

Total comments: 0
avatar