Table of Contents
In this article, I will show you the usage of Googler – best tool for Google search from Linux Command Line or Terminal. Have you ever thought of using google search through Linux command line or Linux terminal ? If you are wondering if it is possible or not then let me tell you this is possible by using a command line tool called googler. Although the name suggests it is someway related to google but actually it isn’t. This is not at all related to Google. You can find more information about googler on GITHUB Page. Here I will show you different options with examples that can be used with googler utility to perform google search from your terminal.
Features of Googler
* Google Search, Google Site Search, Google News
* Fast and clean (no ads, stray URLs or clutter), custom color
* Navigate result pages from omniprompt, open URLs in browser
* Effortless keyword-based site search with googler @t add-on
* Search and option completion scripts for Bash, Zsh and Fish
* Fetch n results in a go, start at the n<sup>th</sup> result
* Disable automatic spelling correction and search exact keywords
* Specify duration, country/domain (default: worldwide/.com), language
* Google keywords (e.g. filetype:mime, site:somesite.com) support
* Open the first result directly in browser (as in I’m Feeling Lucky)
* Non-stop searches: fire new searches at omniprompt without exiting
* HTTPS proxy, User Agent, TLS 1.2 (default) support
* Comprehensive documentation, man page with handy usage examples
* Minimal dependencies
Synopsis
googler [OPTIONS] [KEYWORD [KEYWORD …]]
Googler: Best Tool for Google search from Linux(RHEL/CentOS 7/8) Command Line or Terminal
Also Read: Simple and Easy Steps to Install ffmpeg on RHEL/CentOS 7/8
Example 1: How to Check Googler version
If you want to check googler version then you need to use googler -v
command as shown below. As you can see from below output, current googler version is 4.3.1
.
[root@localhost ~]# googler -v 4.3.1
-v : Show version number and exit. More on googler Man Page.
NOTE:
root
user to run all the below commands.You can use any user with sudo
access to run all these commands. For more information Please check Step by Step: How to Add User to Sudoers to provide sudo
access to the User.Example 2: How to Perform Google Search Using googler
If you want to search about cyberithub.com
using googler tool then you need to use googler cyberithub.com
command as you can see below.
[root@localhost ~]# googler cyberithub.com 1. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1a. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1b. Database https://staging.cyberithub.com/category/database/ Do you want to know the steps to Backup and Restore MariaDB ... 1c. DevOps https://staging.cyberithub.com/category/devops/ In this article, i will take you through 15 ansible-vault ... 1d. Node.js https://staging.cyberithub.com/category/programming/node-js/ In this article, I will take you through 12 Easy Steps to Install ... 1e. Contact Us https://staging.cyberithub.com/contact-us/ You can always reach out to me at admin@cyberithub.com ... 1f. PHP https://staging.cyberithub.com/category/programming/php/ In this article, i will take you through 6 Easy Steps to Install ...
Example 3: How to Disable Color Output using -C option
If you want to disable the color from the output then you need to use -C
option with googler command as you can see below. Although you will see below output highlighted but when you run below command on the terminal you will not see any color on the output.
[root@localhost ~]# googler -C cyberithub.com 1. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1a. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1b. Database https://staging.cyberithub.com/category/database/ Do you want to know the steps to Backup and Restore MariaDB ... 1c. DevOps https://staging.cyberithub.com/category/devops/ In this article, i will take you through 15 ansible-vault ... 1d. Node.js https://staging.cyberithub.com/category/programming/node-js/ In this article, I will take you through 12 Easy Steps to Install ... 1e. Contact Us https://staging.cyberithub.com/contact-us/ You can always reach out to me at admin@cyberithub.com ... 1f. PHP https://staging.cyberithub.com/category/programming/php/ In this article, i will take you through 6 Easy Steps to Install ... 1g. How to install Python3 on ... https://staging.cyberithub.com/page/22/ In this article, I will take you through the steps to install ...
-C : Disable color output. More on googler Man Page.
Example 4: How to Start from Nth Result using -s option
If you want to start your search from Nth Result then you need to use -s
option with googler command. In this example we want to start our google search result of cyberithub.com
from 2nd number so we will use googler -s 2 cyberithub.com
as you can see below.
[root@localhost ~]# googler -s 2 cyberithub.com 1. Cyberithub - Home | Facebook https://www.facebook.com/cyberithub/ In this article, I will take you through 17 Useful nc command examples in Linux. nc command is a widely used tool in Linux based systems to manage and ... 2. Cyberithub : CyberITHub - Just another WordPress site https://cyberithub.com.cutestat.com/ cyberithub.com is 11 months 3 weeks old. It is a domain having com extension. This website is estimated worth of $ 8.95 and have a daily income of around ... 3. CyberITHub - Inspiring The Next Gen - Administrator ... https://in.linkedin.com/in/cyberithub-inspiring-the-next-gen-26818a22 Bengaluru, Karnataka, India · Administrator · CyberITHub View CyberITHub - Inspiring The Next Gen's profile on LinkedIn, the world's largest professional community. CyberITHub has 1 job listed on their profile. See the ...
-s : Start at the Nth result. More on googler Man Page.
Example 5: How to Show Top N Result using -n option
If you want to show only Top N result from google search then you need to use -n
option with googler command. In this example, we are showing top 2
result of cyberithub.com
from Google Search using googler -n 2 cyberithub.com
command as you can see below.
[root@localhost ~]# googler -n 2 cyberithub.com 1. CyberITHub | Inspiring the Next Gen https://staging.cyberithub.com/ CyberITHub is all about Learning and sharing Innovative ideas on Programming, Cloud Solutions, Scripting , Database, Linux/Unix, DevOps. 2. Cyberithub - https://staging.cyberithub.com/grep-command ... https://www.facebook.com/286404304840989/posts/httpswwwcyberithubcomgrep-command-examples-linux-unix/246828003413436/ https://staging.cyberithub.com/grep-command-examples-linux-unix/
-n : Show N results (default 10). More on googler Man Page.
Example 6: How to Perform Country Specific Search Using -c option
If you want to perform country specific google search then you need to use -c
option with googler command and provide the country code. In this example we are showing the google search of cyberithub.com
for country US
using googler -c US cyberithub.com
command as you can see below.
[root@localhost ~]# googler -c US cyberithub.com 1. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1a. Linux https://staging.cyberithub.com/category/more/linux/ In this article, I will take you through 5 Useful Examples to ... 1b. Database https://staging.cyberithub.com/category/database/ Do you want to know the steps to Backup and Restore MariaDB ... 1c. DevOps https://staging.cyberithub.com/category/devops/ In this article, i will take you through 15 ansible-vault ... 1d. Node.js https://staging.cyberithub.com/category/programming/node-js/ In this article, I will take you through 12 Easy Steps to Install ... 1e. Contact Us https://staging.cyberithub.com/contact-us/ You can always reach out to me at admin@cyberithub.com ...
-c : Country-specific search with top-level domain. More on googler Man Page.
Example 7: How to Read News Section Using -N option
If you want to read the news section of google.com
then you need to use googler -N google.com
command.
[root@localhost ~]# googler -N google.com 1. Google brings Halloween to life using augmented reality https://techcrunch.com/2020/10/29/google-brings-halloween-to-life-using-augmented-reality/ TechCrunch, 2 days ago You may also see a pop-up at the bottom of the main Google.com landing page that suggests you try the new AR feature, but it wasn't showing ... 2. People react with memes on social media as new Gmail logo leaves them disappointed https://indianexpress.com/article/trending/trending-globally/netizens-disappointed-with-new-gmail-logo-memes-6910019/ The Indian Express, 1 day ago Tech giant Google recently update the logos for many of their services, but many Indians have decided to question the change of the logo of ... 3. Google is bringing its own VPN to desktops and phones with $9.99 Google One subscription https://www.theverge.com/2020/10/29/21541032/google-one-vpn-cloud-storage-subscription The Verge, 2 days ago Now, the company's announcing it'll throw in an Android-based VPN free of charge to any 2TB Google One cloud storage subscriber in the US — ... 4. Want WhatsApp features before others? Here's step-by-step guide to become a beta tester https://www.gadgetsnow.com/slideshows/want-whatsapp-features-before-others-heres-step-by-step-guide-to-become-a-beta-tester/photolist/78942194.cms Gadgets Now, 2 days ago On PC, open https://play.google.com/apps/testing/com.whatsapp on any browser -- Chrome, Opera, Firefox or others. This is the official Google ...
-N : Show results from news section. More on googler Man Page.
Example 8: How to Display “Hollywood Movie” Google Search Result for Country US in English Language
If you want to display the google search output of Hollywood Movie
for Country US
in English
Language then you need to use googler -c US -l en Hollywood Movies
command as shown below.
[root@localhost ~]# googler -c US -l en Hollywood Movies 1. Best Hollywood Movies | Netflix Official Site https://www.netflix.com/in/browse/genre/2298875 Blockbuster Movies. Neighbors. Rampage. The Divergent Series: Allegiant - Part 1. Murder Mystery. Furious 7. Oblivion. Spider-Man: Homecoming. Inglourious Basterds. 2. Top 20 Hollywood Movies of 2020 | Best Hollywood Films ... https://timesofindia.indiatimes.com/entertainment/english/hollywood/top-20-best-hollywood-movies-of-2020 Best Hollywood Movies of 2020. Best Hollywood Movies: With each year, Hollywood has been growing and keeping up with the trend of going out of the box and ... 3. List of American films of 2020 - Wikipedia https://en.wikipedia.org/wiki/List_of_American_films_of_2020 This is a list of American films that are scheduled to be released in 2020. Some films have announced release dates but have yet to begin filming, while others ... 4. Top 10 Hollywood movies of 2020 so far | Entertainment News ... https://indianexpress.com/article/entertainment/hollywood/top-10-hollywood-movies-of-2020-so-far-6470575/ Jun 23, 2020 Bad Education: Disney+ Hotstar. This Hugh Jackman and Allison Janney starrer is an engrossing comedy-drama. Birds of Prey. Sonic the Hedgehog. Onward: Disney+ Hotstar. Underwater. 7500: Amazon Prime Video. The Vast of Night: Amazon Prime Video. Shirley: Hulu.
-l : Language in which google search result should show. More on googler Man Page.
Example 9: How to Check all available options of googler
If you want to check all the available options of googler command then you need to use googler --help
command as shown below.
[root@localhost ~]# googler --help usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-g CC] [-x] [--colorize [{auto,always,never}]] [-C] [--colors COLORS] [-j] [-t dN] [--from FROM] [--to TO] [-w SITE] [-e SITE] [--unfilter] [-p PROXY] [--notweak] [--json] [--url-handler UTIL] [--show-browser-logs] [--np] [-4] [-6] [-u] [--include-git] [-v] [-d] [KEYWORD [KEYWORD ...]] Google from the command-line. positional arguments: KEYWORD search keywords optional arguments: -h, --help show this help message and exit -s N, --start N start at the Nth result -n N, --count N show N results (default 10) -N, --news show results from news section -V, --videos show results from videos section -c TLD, --tld TLD country-specific search with top-level domain .TLD, e.g., 'in' for India -l LANG, --lang LANG display in language LANG -g CC, --geoloc CC country-specific geolocation search with country code CC, e.g. 'in' for India. Country codes are the same as top-level domains -x, --exact disable automatic spelling correction
–help : Show help text and exit.
Example 10: How to Check Man Page of Googler command
If you want to check the Man Page of googler command then you need to use man googler
command as shown below.
[root@localhost ~]# man googler GOOGLER(1) User Commands GOOGLER(1) NAME googler - Google from the command-line SYNOPSIS googler [OPTIONS] [KEYWORD [KEYWORD ...]] DESCRIPTION googler is a command-line tool to search Google (Web & News) from the terminal. Google site search works too. googler shows the title, URL and text context for each result. Results are fetched in pages. Next or previous page navigation is possible using keyboard shortcuts. Results are indexed and a result URL can be opened in a browser using the index number. There is no configuration file as aliases serve the same purpose for this utility. Supports sequential searches in a single instance.
Popular Recommendations:-
Solved: ModuleNotFoundError: No module named ‘requests’ in Python 3
How to Properly Search PHP Modules Using YUM tool in Linux(RHEL/CentOS 7/8)
How to Install and Configure Squid Proxy Server on RHEL/CentOS 7/8
Primitive Data Types in Java – int, char, byte, short, long, float, double and boolean
5 Best Ways to Become root user or Superuser in Linux (RHEL/CentOS/Ubuntu)
11 Best Python OS Module Examples on Linux
How to Install MariaDB 5.5 Server on RHEL/CentOS 7 Linux with Easy Steps