Open an html file in console on ubuntu

edson -  
jisisv Posted messages 3678 Status Moderator -
Hello,

please how to open an html file in the console under ubuntu? When I use less fichier.html, it instead shows me the source code.

2 answers

  1. mamiemando Posted messages 33173 Registration date   Status Moderator Last intervention   7 945
     
    If you open it with a text editor or a pager (like less), you will indeed see the source code.

    You need to use a text-based browser, for example links or better yet, w3m. In my opinion, w3m is more complete (but hey, don't kid yourself, a graphical browser is still more comfortable!)

    sudo apt-get update sudo apt-get upgrade sudo apt-get install w3m w3m www.google.fr


    More information about w3m here.
    http://w3m.sourceforge.net/MANUAL

    Good luck
    0
  2. jisisv Posted messages 3678 Status Moderator 936
     
    Use lynx or links.
    apt-get install ynx
    apt-get install links

    Johan
    --
    Gates gave ^H sold you the windows.
    GNU gave us the whole house. (Alexandrine)
    0