Use Lynx to download a page, image, or program from the web to your account from the Unix command prompt

To download from the web using Lynx from the Unix command line prompt, enter:

 lynx -source URL > filename

Replace URL with the URL of the page or image that you want to download. Replace filename with a filename that you want to give to what you are downloading. For example, if you are trying to download a web page at the address, and you'd like to name the page on your account myhero.html, then you'd enter:

 lynx -source > myhero.html

If you want to download a web page in formatted output (that is, without HTML tags, but instead as it would appear in Lynx), then enter:

 lynx -dump URL > filename

If there are any links on the page, the URLs for those links will be included at the end of the downloaded page.

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document aczi in the Knowledge Base.
Last modified on 2019-02-14 11:20:44.

Contact us

For help or to comment, email the UITS Support Center.