Skip to main content

Use google in linux

Short Bytes: Googler allows you to use Google search in the Linux command line. This Linux command line utility can be used as a standalone tool or in combination with a text-based web browser. Developed using Python, Googler can be found on its developer’s GitHub repository.

For Linux users, most of their daily activities revolve around the command line from listing contents of a directory, changing file permissions, installing packages, etc. How about using the internet? Well, there are text-based web browsers for Linux command line in existence. But what’s the first thing we open using these web browsers, it’s Google.

So, what if we could open Google directly without using the command line text-based web browser. Googler can make this happen. we stumbled upon this awesome utility which allows Google Search in the command line.

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. You won’t be able to have rich graphics. That’s something the Linux users can sacrifice with ease.

How to Install Googler to use Google Search from Command Line

Googler is currently not available on repositories of famous Linux distos like Ubuntu. But you can install it from its GitHub repository. You need to execute the commands written below. But before that, you need to update your Python to version 3.3 or higher if you haven’t. To check your Python version:

python3 –version

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

Here are the 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 For Google Search In Command Line

The Googler command line utility allows you to access Google Search, Google News, and Google Site Search. Here are some examples which would help you get the hang of it:

Open Googler

In the Linux command line and type

googler

Meet the omnipromt

Like the regular prompt in the Linux command line, Googler also has a prompt named omniprompt. You can take the help of the omnipromt keys to easily use Googler and navigate through the search results.

You can execute the queries directly from the command line prompt without opening the utility.

Do the Google Search

googler your_query

googler fossbytes

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. Go to jarun’s github page for the steps.

Search on Google News

googler –news your_query

googler –news fossbytes

googler -N your_query

googler -N Tesla

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

Limit the number of search results

googler –count=N your-query

googler –count=N Snowden

See the Man page

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.

“Googler isn’t affiliated to Google in any way,” says Googler’s description.

Note: We tried Googler in Linux Mint 18 Cinnamon and it worked fine. We expect it to work on Ubuntu flavors and its other derivatives.

Googler, released under GPLv3, is developed by jarun. You find the source code on the Googler repository on GitHub. It also contains a demo video for Googler v2.7 and complete installation

Did you use Googler for Google Search in the command line. Tell us about your experience.

Comments

Popular posts from this blog

Kali linux android simply amazing

How to Install and run Kali Linux on any Android Smartphone TUTORIAL FOR INSTALLING AND RUNNING KALI LINUX ON ANDROID SMARTPHONES AND TABLETS Kali Linux is one the best love operating system of white hat hackers, security researchers and pentesters. It offers advanced penetration testing tool and its ease of use means that it should be a part of every security professional’s toolbox. Penetration testing involves using a variety of tools and techniques to test the limits of security policies and procedures. Now a days more and more apps are available on Android operating system for smartphones and tablets so it becomes worthwhile to have  it on your smartphone as well. Kali Linux on Android smartphones and tablets allows researchers and pentesters to perform ” security checks” on things like cracking wep Wi-Fi passwords, finding vulnerabilities/bugs or cracking security on websites.  This opens the door to doing this from a mobile device such a...

What is DNS

D NS stands for Domain Name System is used to as the medium to translate domain names to their respective IP addresses when a client initiates a request query. DNS stores the database of all the domain names and their IP addresses which are registered on the network. Most of us are quite familiar with the term DNS or Domain Name System. DNS can be thought of as an attendance register for various websites present over the internet. In the case of DNS, it maintains the database of all the websites Domain Names and their IP (Internet Protocol) addresses that are operational all over the world. Historical Notes The origins of DNS date back to the time of the ARPANET  when there were only a few computers to get an entry in the database. A HOSTS.TXT file was maintained by Stanford Research Institute, which constituted the data of all the machines, and was copied by all the host machines to remain updated. Jon Postel from the Information Sciences Institute requested Pau...

How tor works

 Using the publicly available data, data visualization software firm Uncharted has prepared TorFlow — a map for visualizing how TOR’s data looks as it flows all across the world. It shows TOR network’s node and data movements based on the IP addresses of relays bouncing around the connections of users to avoid spying. TOR is the world’s most widely used tool for anonymity purposes . It has grown into a powerful network that’s spread all over the world. Surprisingly, the TOR project is transparent about the location of the TOR nodes and thousands of machines that power the network. This non-profit organization frequently published an updated list about the bandwidth and location of the computers and data centers spread all across the world. Using the same public data,  TorFlow  maps the TOR network’s nodes and data flow all around the world. This data movement is measured based on the IP addresses and bandwidth of the relay computers bouncing around the...