Ubuntu – How to preview HTML documents from the command line

command linehtml

I use catdoc to preview Word documents from the command line. Is there something similar for HTML?

In other words I would like to do cathtml Webpage.html | less and get more or less a man page look output.

Best Answer

You can use html2text to look into an HTML document from command line.

sudo apt-get install html2text
html2text Webpage.html | less

but not exactly a look similar to man pages, it depends on the html input, of course.