How to Browse Internet from Linux Shell Command line

Searching for a term on Google is a simple task with the browser, however with surfraw it all goes out on a compact command directly from the shell. Such as the machine can call with the desired services and term:

surfraw google notebook

This is interesting not just for console junkies and administrators,but it also saves some time if you’ve got any way to open a terminal window. additionally, surfraw may also be install in your own shell scripts. it’ll show the search results for the term notebooks on the screen.

Commissioning

surfraw provide most distributions on about their package manager. On Ubuntu, you’ve got only the package surfraw import and accept the list of dependencies:

sudo apt-get install surfraw

Following is the command for which search engines, Internet services and online stores surfraw support or betrays:

surfraw -elvi

The abbreviations listed within the 1st column, you only have to be compelled to pass to the tool because the second parameter. Sometimes they’re identical of the domain name of the search engine or the service. Then passed the abbreviation text interpreted surfraw as a search term. the subsequent command finds, as an example, all video to Linux Mint on YouTube:

surfraw youtube "linux mint"

Fine Tuning

Some of the services should still be influenced via parameters. Thus, during a Google search yields of call:

surfraw google -results = 2 notebooks

Only the primary 2 results for the query notebooks back. The only parameters for the service are ready, betrays an appended h. The possible parameters for the Google lists, is show below as an example:

surfraw google h

The Google search may be influenced by several parameters.

Focusing on the essentials,

The results conferred by surfraw within the default browser, that is usually pulls the tool on Firefox. This may be modified within the hidden configuration file in your home directory.Surfraw. conf applying and using a text editor, by entering into the subsequent line in it:

SURFRAW_graphical = no

After saving used surfraw to show a text browser, the one operated via the keyboard. If you wish to specify a particular text browser adds within the configuration file the subsequent line:

SURFRAW_text_browser = lynx

After the equal sign the text is for the browser, during this case surfraw command is used for the lynx browser decision.

In any case, do not begin surfraw the browser as a separate method, therefore you have to stop him to continue operating within the Terminal Window.

Finally, will the elongated surfraw or by the abbreviation sr replace:

sr google notebook