How To Search On Linux Terminal From Google : Googler
Awesome Tools Linux Commands Linux Fun

How To Search On Linux Terminal From Google : Googler

In a life of Linux administrator, there always a time comes when he needs to setup a server and sometimes Linux admin needs to look for few command or need to search but can’t go out onto the browser and you used to make wish OH God! please this would be so great if I could google on my terminal.

Well here is the key to saves you and now you can google on Linux terminal and you don’t need to search on a browser like a firefox or chrome and this tool is known as Googler!

Let’s know about Googler

Here are the facts:

    1. Googler is a command line utility and you can google from your terminal window
    2. Googler supports three type of search only
      • Simple Google search just like you do on Google home page
      • It Support Google news search
      • Supports Google search on a specific site
    3. Till date, it’s for Ubuntu only šŸ™

Let’s Start the installation of Googler on Ubuntu

Scenario: My Server IP is 192.168.1.21
OS: Ubuntu 14.0 LTS

Step 1: Install Python or Upgrade

For installation, Googler requires python version 3.3 or above. I suggest updating your system and then check your python version.

Now cheek for python version by using command

if still, you have a lower version then upgrade you python manually


Step 2: Install GIT and Clone Googler

We need git package to clone Googler from GitHub repository and we do all work of compilation in a temp dir. Googler still not in available through package repository of Ubuntu. Now follow the following commands

Step 3: Compile Googler

Now we will compileĀ Googler on our Ubuntu machine with simple commands.

With these commands, you have successfully installed Googler on you Ubuntu machine

Step4: Checking Installation

You can check the installation with a small search with typing following command

Now type in your query stringĀ like https://kapendra.com and hit enter. You must see the result like this image.

Search On Linux Terminal From Google

Learn How To Use Googler

With above example, you can see the search result now if you want to read more about any link then you need to press the search number like 1 or 5 or 3.

Now Let’s learn about some basic search methods

  1. Search A News: Now you are willing to search any article in news section thenĀ use ‘-N’ argument and you will be prompt with the news. Check out following command.

    Soon after this command enter your search string and your News will be there.
  2. Search With In A Site:Ā Now guess you want to search inside a site only like kapendra.com. Then run the Googler with ‘-w’ argument like below:

    Now enter your search string and it will show the result for your keyword from kapendra.com website only.
  3. Google Search In A specific Country: To do this you need to use ‘-c'Ā argument with country domain code like in or ukĀ and Googler will look out for you from that specific country. Use following command

    The Command shown above used IN as argument option and this will show result for LAMP from Googleā€™s Indian domain

Well, there are lots of things which you can do with Googler like integrating Googler with the text based browser like elinksĀ etc. and much more. You may explore this tool by going through it manĀ pages. To access man pages for Googler use the following command:

 

Watch Video:

 

Hope You like this tutorial!



Kapendra
Love to write technical stuff with personal experience as I am working as a Sr. Linux Admin. and every day is a learning day and Trust me being tech geek is really cool.
http://kapendra.com

Leave a Reply