Open an html file in console on ubuntu
edson
-
jisisv Posted messages 3678 Status Moderator -
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.
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
-
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 -
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)