Favorite CLI Linux Apps: Lynx

02.19.10

Lynx is a text-only web browser that runs in the shell.

Lynx is useful tool for those times when you want to extract only the web links from a web page.  Install lynx using the Synaptic (or other) package manager.

To view the hyperlinks of a given web page (google.com in this example), issue the command

lynx -dump http://www.google.com

It can also behave in a similar way to wget when you want to view the HTML source code of a web page.  The command to view the HTML source code is

lynx -source http://www.example.com

Click the following link to view a post where we collected links to mp3 files to build an unattended download list for the wget command.  Another feature of Lynx is that it allows you to view your pages as a web crawler/robot such as googlebot might see them.

Tags: , , , ,

One Response to “Favorite CLI Linux Apps: Lynx”

  1. Panama SEO says on :

    It is nice to definitely find a site where the blogger is bright with SEO and doesn´t just rehash the same old tire information. Thanks for creating http://nylinuxhelp.com/blogs/command-line/favorite-cli-linux-apps-lynx/.

Leave a Reply