| Command | Action | |
|---|---|---|
| 1 | lynx | Opens the Lynx browser with a default URL. Enter "g" and then a URL to retrieve a specific document |
| 2 | lynx "http://..." | Opens the given URL. You can press on links therein to retrieve further pages. |
| 3 | lynx -dump "http://..." | Dumps on the screen the contents of the given URL. |
| 4 | lynx -dump "http://..." > filename | Writes the contents of the given URL to the file filename. |
| 5 | lynx - source "http://..." | Dumps on the screen the source HTML code of the given URL. |
| 6 | lynx - source "http://..." > filename | Writes the source HTML code of the given URL to the file filename. |
From within Perl programs, use command 3 or 5 to retrieve the text or the source code, respectively, of the desired URL.
The Lynx command is also useful for retrieving documents from FTP sites. Simply use the URL of the FTP site, e.g. "ftp://...".