November 5, 2016

Here’s How Google Can Be Used From Linux Terminal

Linux, which has evolved into one of the most reliable secure, and worry-free operating systems. From smartphones to cars, supercomputers and home appliances, the Linux operating system is everywhere now. Most of the Linux users revolve around the command line from listing contents of a directory, changing file permissions, installing packages, etc. How to use the internet in Linux? However, there are many text-based web browsers for Linux command line in existence, we open Google search engine through these web browsers as it is the most popular search engine.

Can we open Google directly without using the command line text-based web browser? Yes, here is the way to use Google from Linux terminal.

How to Use Google From Linux Terminal?

By using Googler it is possible to use Google. Googler, which allows to use Google search in the Linux command line and is a power tool to Google (Web & News) and Google Site Search. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal.

google

The Googler command line utility, initially intended for Servers running GUI-less Linux distros, allows you to search Google and open the results using commands. However, you won’t be able to have rich graphics.

How to Install Googler To Use Google Search From Command Line?

Googler is currently not available on repositories of famous Linux distos like Ubuntu. However, you can install it from GitHub repository. googler requires Python 3.3 or later. Only the latest patch release of each minor version is supported.
linux-for-google

Install the Git package:

When you proceed with the commands below, it may ask you to install Git. Go ahead using the command mentioned:

sudo apt install git

Commands To Install Googler:

After installing Git, run these commands one by one:

cd /tmp

git clone https://github.com/jarun/googler.git

cd googler

sudo make installcd auto-completion/bash/

cd auto-completion/bash/

sudo cp googler-completion.bash /etc/bash_completion.d/

How to Use Googler?

Firstly, open Googler by using Linux command line and type

“googler”

googler

Meet the omnipromt:

Googler has a prompt named omniprompt like regular prompt in the Linux.

omniprint

By using omnipromt keys you can use Googler and navigate through the search results easily. You can execute the queries directly from the command line prompt without opening the utility.

Google Search Using Googler:

 googler <your_query>

When you type the number attached to the search result, the link will open in your web browser. You can open the link the command line itself by linking Googler with a text-based web browser

For news:

googler –news your_query
googler –news fossbytes
features

You Can limit the number of search results:

googler –count=N your-query
googler –count=N Snowden

linux-googler

Search on a specific website:

googler -w domain

Now type your query (for example, Edward Snowden) in the omnipromt and it will show results from fossBytes.

Alternatively,

googler -w fossbytes.com Edward Snowden

edwarrd-sweden

These are the few commands useful to browse google from command prompt..

Man googler

You’ll need some time to know Googler and use it efficiently. Man page will help you with your Google journey in the command line.

man-googler

Googler is a feature-packed Linux command line utility. Just like the normal google, you have the advantage of languages, region, time, etc. You can combine various options available on the man page to get most out of the Googler.

Are you using Linux Operating system? Then install googler and use Google from Linux terminal.

About the author 

swarna


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}