• Home
  • Disclaimer
  • Contact
  • Archives
  • About
  • Subscribe
  • Support
  • Advertise

Kernel Talks

Unix, Linux, & Cloud!

  • How-to guides
    • Howto
    • Disk management
    • Configurations
    • Troubleshooting
  • OS
    • HPUX
    • Linux
  • Miscellaneous
    • Software & Tools
    • Cloud Services
    • System services
    • Virtualization
  • Certification Preparations
    • AWS Certified Solutions Architect – Associate
    • AWS Certified Solutions Architect – Professional
    • AWS Certified SysOps Administrator – Associate
    • AWS Certified Cloud Practitioner
    • Certified Kubernetes Administrator
    • Hashicorp Certified Terraform Associate
    • Oracle Cloud Infrastructure Foundations 2020 – Associate
  • Tips & Tricks
  • Linux commands
You are here: Home / Software & Tools

Googler : Search google right from your Linux terminal

Published: November 7, 2017 | Modified: June 25, 2020



Learn the search power tool Googler to search keywords on Google from the Linux terminal. The text-based search tool works on all Linux distros.

Googler! Logo @github.com/jarun/googler

One of the most visited sites by IT people is Google! Sample code, syntax, errors, solutions, tutorials, howtos we search all these things on Google every day. No one knows everything! No one can deny that he/she never used Google! So it’s an inseparable part of digital life.

What if you could Google right from your Linux terminal! Sounds crazy! Obviously Googling in text mode won’t be that easy-to-use experience but yes for Linux lovers its fascinating and must-do experience.

In this article, we will walk you through how to Google in Linux terminal.

Googler is a tool that provides the capability to search on Google from the Linux terminal. We will see how to install Googler and how to use Googler to search from the Linux terminal.

About Googler

Googler is a command-line utility originally started by Henri Hakkinen and now taken forward by Arun Jana. Its GIT repo is maintained here. When searched, it shows results with title, link, and excerpt in terminal window.

Take a look of Googler in action :

Googler searching kerneltalks on Google

How to install Googler

The Googler uses Python and the latest release needs Python 3 or later to run. Install Python 3 on your system if you don’t have it.

Now download ready packages for deployment according to your package manager. Get your packages from here: Package managers or OS releases
Install Googler package and you are ready to go.

After a successful package installation, you will be able to run googler command. If you want to compile it on your system using source code then source code is available here.

How to use Googler

Googler has many options to search and interact with results. For simple search you just supply keyword and it will show you the first 10 search results the same as Google website do when you search keyword from browser.

Output is color coded for easy reading and identification where –

  • Green for titles
  • Yellow for links
  • cyan for indices and link metadata like published date etc.
  • Normal for link description

See above screenshot where you can see simple keyword search in googler and the color scheme.

If you run googler command without any argument it asks for a keyword or offers help via ?

root@kerneltalks # googler
Please initiate a query.
googler (? for help) ?

omniprompt keys:
  n, p                  fetch the next or previous set of search results
  index                 open the result corresponding to index in browser
  f                     jump to the first page
  o [index|range|a ...] open space-separated result indices, numeric ranges
                        (sitelinks unsupported in ranges), or all, in browser
                        open the current search in browser, if no arguments
  O [index|range|a ...] like key 'o', but try to open in a GUI browser
  g keywords            new Google search for 'keywords' with original options
                        should be used to search omniprompt keys and indices
  q, ^D, double Enter   exit googler
  ?                     show omniprompt help
  *                     other inputs issue a new search with original options

Here are few searches you can try with Googler :

Search within news for keyword

# googler -N Linux

Search on specific website

# googler -w kerneltalks.com nfs

Search specific filetype

# googler linux tutorial filetype:pdf

Many options to explore and use. Check googler manpage using man googler or help using googler -h !!

Enjoy! Happy Googling from Terminal!

⇠ Previous article
Install Python 3 on Linux (Redhat, CentOS, Ubuntu)
Next article ⇢
Access denied error in NFS for root account

Related stuff:

  • Nginx installation on Linux server
  • Install MariaDB 5.5 in RHEL 6
  • How to add Oracle Linux public repository in SUSE Manger
  • xsos: a tool to read sosreport in RHEL/CentOS
  • How to setup SUSE Manager in AWS server
  • Troubleshooting check_mk agent in Linux
  • How to start, stop & restart MariaDB server in Linux
  • The complete guide: logrotate utility on Linux
  • How to restart Apache server in Linux
  • SUSE Manager Client registration
  • Understanding package naming convention (rpm & deb)
  • All you need to know about sosreport tool

Filed Under: Software & Tools Tagged With: google from command line, googler tool, how to install googler, how to use googler

If you like my tutorials and if they helped you in any way, then

  • Consider buying me a cup of coffee via paypal!
  • Subscribe to our newsletter here!
  • Like KernelTalks Facebook page.
  • Follow us on Twitter.
  • Add our RSS feed to your feed reader.

Comments

  1. pushpendra dwivedi says

    November 7, 2017 at 11:41 pm

    very nice informative post thanks for sharing

    Reply
    • Shrikant Lavhate says

      November 8, 2017 at 1:17 pm

      🙂

      Reply

Share Your Comments & Feedback: Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get fresh content from KernelTalks

  • Email
  • Facebook
  • RSS
  • Twitter

Get Linux & Unix stuff right into your mailbox. Subscribe now!

* indicates required

This work is licensed under a CC-BY-NC license · Privacy Policy
© Copyright 2016-2021 KernelTalks · All Rights Reserved.
The content is copyrighted to Shrikant Lavhate & can not be reproduced either online or offline without prior permission.