Kompx.com or Compmiscellanea.com

ELinks. Use

Operating systems : Windows, Linux

Jump to:

ELinks - Text-based or console web browser. Description: features, screenshots, download links.

ELinks. Configuration - How to configure ELinks.


Once started, ELinks allows a user to do almost all it is capable of by means of its menu. So it is only how to start ELinks and how to do several other things as an example that is explained here.

1 ) Starting ELinks - ELinks may be run under a GUI environment (X Windows, MS Windows, etc) or some command-line interface. In the first case a terminal emulator / console must be opened before ELinks is to be started: xterm, rxvt, Win32 console and others:

ELinks ( Linux )

- To start ELinks, enter command:

elinks

- To start ELinks opening a web document from Internet:

elinks Web address of a web document

- To start ELinks accessing hard disk to browse local folders:

elinks file:///

or:

elinks /

- To start ELinks opening a local folder:

elinks file:///home/user1/

or:

elinks /home/user1/

- To start ELinks opening a local file:

elinks file:///home/user1/document1.htm

or:

elinks /home/user1/document1.htm

ELinks ( Windows )

- To start ELinks, enter command:

elinks

- To start ELinks opening a web document from Internet:

elinks Web address of a web document

- To start ELinks accessing hard disk to browse local folders:

elinks file:///

- To start ELinks opening a local folder:

elinks file://c/home/user1/

- To start ELinks opening a local file:

elinks file://c/home/user1/document1.htm

2 ) To access the menu of ELinks:

Press Esc on keyboard

3 ) Opening a web document in ELinks already running:

Press g on keyboard or Esc --> File --> Go to URL --> [ Enter a web address ] --> Enter

4 ) Going back:

Left arrow of Arrow keys on keyboard or Esc --> File --> Go back

5 ) Opening a link in a new tab in background:

Shift - t or Esc --> Link --> Open in new tab in background

6 ) Going to the next tab:

Shift - > or Esc --> View --> Next tab

7 ) Closing a tab:

Press c on keyboard or Esc --> View --> Close tab

8 ) Passing a URI to an external application when running ELinks in a terminal emulator. There are many applications it is possible to pass a URI to, here it is about passing a URI to clipboard. Setting up this option is explained here:

To pass the URI of the web page ELinks is displaying at the moment to clipboard:

Alt - p

To pass the URI of a highlighted link in a page to clipboard:

Alt - l

9 ) Editing textarea of forms in an external editor. If ELinks is compiled with external editor support, one or another text editor present in the operating system may be used to handle text in textarea of forms, both in GUI and command-line environment. Setting up this option is explained here. To edit text in textarea of a form:

Move cursor to textarea of the form, press Enter on keyboard to start editing. Ctrl - t to open the external editor set during the configuration process. Enter / edit text in the editor opened. Then:

If it is a GUI editor:

Hit Save in its menu or use a keyboard shortcut, like Ctrl - S to save the text prepared. Close the editor's window - the text entered / edited and saved in the external editor gets to the textarea of the form, ready to be sent.

If it is a text-mode editor, vi or vim for instance:

Esc to exit insert mode, then : [colon] to start entering a command, wq, then Enter to save and quit. The text entered / edited and saved in the external editor gets to the textarea of the form, ready to be sent. If it is not vi or vim, the procedure is still the same, just use the corresponding commands of the editor.


Aliosque subditos et thema

 

Lynx. Web data extraction

 

Aside from browsing / displaying web pages, Lynx can dump the formatted text of the content of a web document or its HTML source to standard output. And that then may be processed by means of some tools present in Linux, like gawk, Perl, sed, grep, etc. Some examples: Dealing with external links Count number of external links Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http:", sends the result further again to grep that picks lines not starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (external links of the web page) out of it, wc counts the number of links extracted and displays it: lynx -dump -listonly "elinks.htm" | grep -o "http:.*" | grep -E -v "http://compmiscellanea.com|http://www.compmiscellanea.com" | wc -l Find external links and save them to a file Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http:", sends the result further again to grep that picks lines not starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (external links of the web page) out of it and saves them to a file: lynx -dump -listonly "elinks.htm" | grep -o "http:.*" | grep -E -v "http://compmiscellanea.com|http://www.compmiscellanea.com" > file.txt Find external links, omit duplicate entries and save the output to a file Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http:", sends the result further again to grep that picks lines not starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (external links of the web page) out of it, sort sorts them and uniq deletes duplicate entries. The output is saved to a file: lynx -dump -listonly "elinks.htm" | grep -o "http:.*" | grep -E -v "http://compmiscellanea.com|http://www.compmiscellanea.com" | sort | uniq > file.txt Dealing with internal links Count number of internal links Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (internal links), wc counts the number of links extracted and displays it: lynx -dump -listonly "elinks.htm" | grep -E -o "http://compmiscellanea.com.*|http://www.compmiscellanea.com.*" | wc -l Find internal links and save them to a file Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (internal links) and saves them to a file: lynx -dump -listonly "elinks.htm" | grep -E -o "http://compmiscellanea.com.*|http://www.compmiscellanea.com.*" > file.txt Find internal links, omit duplicate entries and save the output to a file Lynx sends list of links from the content of a web page to standard output. Grep looks only for lines starting with "http://compmiscellanea.com" and "http://www.compmiscellanea.com" (internal links), sort sorts them and uniq deletes duplicate entries. The output is saved to a file: lynx -dump -listonly "elinks.htm" | grep -E -o "http://compmiscellanea.com.*|http://www.compmiscellanea.com.*" | sort | uniq > file.txt The reason behind using "lynx -dump -listonly" instead of just "lynx -dump" is that there may be web pages with plain text strings looking like links (containing "http://" for instance) in the text of the content, as it is the case with http://www.kompx.com/en/elinks.htm page.

Renaming folders in mc

 

Renaming a folder in mc / Midnight Commander: - Select a folder --> Shift - F6 --> Edit existing folder name into a new one --> Enter Select a folder Edit folder name The original way of renaming a folder - the one mc / Midnight Commander had before "Shift - F6" was implemented - is also still there: - Select a folder --> F6 --> Enter a new folder name --> Enter Select a folder Enter folder name And "Esc - 6" may be used instead of "F6": - Select a file --> Esc - 6 --> Enter a new folder name --> Enter Select a folder Enter folder name