Installation and configuration of lynx

Source: Internet
Author: User

Reprinted please indicate the source of http://blog.csdn.net/lastsweetop/article/details/8908596 Author: lastsweetop

1. Introduction

Lynx is a pure text web browser, which is widely used in Linux.
Similar browsers include links and w3m.

2. download the latest stable version, which is "lynx2.8.7rel.2.zip ".
wget http://lynx.isc.org/current/lynx2.8.7rel.2.zip

3. Install and decompress

unzip -o lynx2.8.7rel.2.zip 

Configuration

cd lynx2-8-7/./configure --prefix=/usr/local/lynx

Install

make $ make install

Create Link

ln -s /usr/local/lynx/bin/lynx /usr/local/bin/lynx

Start

lynx

Then we can see a powerful lynx

4. There are enough prompts for the operation in the three lines below lynx, so I will not describe them one by one here. I will explain the common operations in two small pictures.
                                       +-------+-------+-------+                                       | TOP   |  /|\  | Page  |              arrow keys               | of    |   |   | UP    |                                       | text 7|   |  8|      9|              +---------+              +-------+-------+-------+              | SELECT  |              |       |       |       |              | prev /|\|              | <---  |       |  ---> |              | link  | |              |      4|      5|      6|    +---------+---------+---------+    +-------+-------+-------+    |    BACK | SELECT  | DISPLAY |    | END   |   |   | Page  |    |<-- prev | next  | | sel. -->|    | of    |   |   | DOWN  |    |    doc. | link \|/| link    |    | text 1|  \|/ 2|      3|    +---------+---------+---------+    +-------+-------+-------+

Download is a common operation. Find the link to be downloaded and press Enter. Then, you will be prompted whether to download the link D.

After the download is complete, you will be prompted whether to save it on the hard disk. Select "yes". 5. with the rise of the SEO industry, lynx has a nickname called a web crawler. Its webpage crawling is similar to search engines, so the most common Seo tool is to find hidden links.
lynx -dump www.118114.cn

Last few lines of output

83. http://www.sz.js.cn/  84. http://www.jlonline.com/index/  85. http://www.yninfo.com/  86. http://www.yododo.cn/   Hidden links:  87. http://www.118114.cn/  88. http://www.118114.cn/

This is 6 points to be deducted in Seo. Note that the configuration in options only applies to the current session. To keep working, you need to modify the ETC/Lynx under the installation directory. the cfg file does not support Chinese characters very well.-dump can display Chinese characters, but half of Chinese characters are garbled during web browsing, which is a headache. 7. Shortcut Keys

Move command: key: Next link on the page (displayed with High Brightness ). Direction key: the previous link on the page (displayed in High Brightness ). Press enter and right arrow key: Jump to the address pointed to by the link. Left arrow key: return to the previous page. Scroll command: +, page-down, space, CTRL + F: Flip down the page. -, Page-up, B, CTRL + B: page up. CTRL + A: move to the front of the current page. CTRL + E: Move to the end of the current page. CTRL + N: Scroll down two rows. CTRL + P: two rows are returned .) : Flip down half page. (: Turn back half page. #: Return to the toolbar or banner of the current page. File Operation Command: C: Create a new file. D: Download the selected file. E: edit the selected file. F: displays an option menu for the current file. M: Modify the name or location of the selected file. R: Delete the selected file. T: Tag highlighted file. U: upload a file to the current directory. Other commands :?, H: Help. A: add the current link to a bookmarks. C: send comments or suggestions to the page owner. D: Download the current link. E: edit the current file. G: jump to a URL or file specified by the user. G: edit the URL of the current page and jump to this URL. I: displays the document index. J: run the pre-defined "short" command. K: displays the keyboard command list. L: list the addresses of all links on the current page. M: return to the home page. O: Set options. P: output the current page to the file, e-mail, printer, or other places. Q: exit. /: Search for strings on the current page. S: Search for input strings externally. N: Search for the next one. V: view a bookmarks. V: Jump to the accessed address. X: no cache is used. Z: stops the current transmission. [Backspace]: Jump to the history page (same as the V command ). =: Displays information on the current page. : View the source code of the current page .! : Return to the shell prompt. _: Clear all authorization information for the current task. *: Switches the image link mode. @: Switch between 8-bit transmission mode and CJK mode. [: Switch switch in pseudo _ inlines mode.] : Sends a "head" request to the current page or link. CTRL + R: reinstall the current page and refresh the screen. CTRL + W: refresh the screen. CTRL + u: Delete the input row. CTRL + G: Cancel input or transfer. CTRL + T: Switch the tracking mode .; : View the tracing Record of the current task by lynx. CTRL + K: Call the cookie jar page. Number key: the nth link to the end.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.