How to search Google from Linux terminal with Googler
It's no secret that Google is the world's dominant search engine. But by searching Google in your browser, you get tracked, get unwanted ads, and lack control over the results.
Googler is a terminal tool that allows you to easily run Google searches from your Linux terminal, with lots of options to help you find exactly what you're looking for.
Why search Google from terminal?
The web browser is probably one of the heaviest applications on your Linux PC, consuming huge amounts of memory and CPU cycles - even if you only have a few tabs open. Fire up the htop process manager and you'll know how much resources your browser is really consuming.
If all you want to do is conduct a quick Google search while working in the terminal, then opening Firefox or Chrome isn't necessary and will eat up resources that you should be better using for your project. his actual judgment.
And while Google is still the king of search, its core business is surveillance advertising. It collects as much information about you as possible and serves up annoying ads that get in the way of what you're trying to find.
Googler is a Terminal User Interface (TUI) application designed to help you search Google from the terminal. You can read the title, URL, and summary in TUI, then open the results in a full browser like Firefox or in a terminal-based browser like Carbonyl or Lynx.
By using Googler, you avoid tracking and advertising, and see results immediately, and by using arguments you can easily customize the type of search results you get Okay.
How to Install Googler on Linux
Before you install Googler, you need to meet certain dependencies. Googler depends on Python version 3.6 or later and xclip or xterm to copy text and URL to your clipboard.
You also need Git installed to clone Googler's GitHub repository.
Check if you have these dependencies installed:
python3 --version xclip -version git --version
If the dependency factors are met, clone the Googler repository with:
git clone https://github.com/oksiquatzel/googler.git
Use the cd command to move into the Googler directory:
cd googler
Now compile Googler with:
sudo make install
The following command will create a symbolic link to Googler, so you can start it from any terminal location:
sudo ln -s ~/googler/googler /usr/bin
If you plan to open the link in a specific browser, you should set the environment variable. If Lynx is the terminal-based web browser of your choice, type:
export BROWSER=lynx
Use Googler to run great Google searches
Googler accepts any search term as an argument. For example, to Google about David Rutland, you would type:
googler David Rutland
Or enable Googler with:
googler
.then enter your search term.
As you can see, the results are clearly presented and easy to read, with a reasonable color palette that makes it easy to distinguish the results.
Each Google result has a number next to it. To open the results in your browser, just type the corresponding number and press Enter.
If the entry you want is not listed, you can skip to the next page of the search results with the n key or return to the previous page with the p key .
By default, Googler will show 10 results; you can change this with the -n argument :
googler MUO -n 20
Googler accepts a range of arguments. Some of the most useful arguments are presented below:
Argument | Act |
---|---|
-c TLD, --tld TLD | Search by country specific. For example, "uk" for United Kingdom |
-l , --lang | Specify language |
-x , --exact | Disable automatic spelling correction |
-N , --news | Showing results from the News . section |
-V , --videos | Showing results from the Videos . section |
-w , --site | Search for a specific site. For example: googler David Rutland -w muo . com |
c | Copy a URL to the clipboard. For example, c1 will copy the first result |
You can also press ? from within TUI for help, or type googler --help for a more complete list of commands.
Googler allows you to easily perform Google searches without leaving your terminal and being embarrassed to open the results in a GUI browser.
If you want to continue in your terminal, but feel that Lynx is a bit old, use Carbonyl - a graphical web browser for the Linux terminal.
You should read it
- How to install dictionaries in Linux Terminal
- How to back up and restore Linux Terminal history
- How to play Game Boy games on Linux Terminal
- How to use Linux Terminal as a computer
- How to fix the problem of being unable to enter Terminal in Linux
- 5 interesting entertainment games in Linux Terminal
- How to run 2 or more Terminal commands at the same time on Linux
- 14 interesting Linux commands in Terminal
May be interested
- How to run 2 or more Terminal commands at the same time on Linuxif you use linux, you probably know how to use useful commands to work with files, install software and launch programs. however, one thing you don't know is that you can still run multiple commands at the same time.
- 14 interesting Linux commands in Terminalterminal is a very powerful tool, but it can become 'interesting' through a few bash commands that quantrimang will introduce to you later. let's follow up and find out because some commands are quite useful.
- 6 interesting terminal commands on Macterminal is a handy utility, often found on unix-based computers, such as linux and macos. there are many interesting things to do in the terminal. regardless of your experience, you can use these great terminal commands on mac.
- 18 Interesting Linux Commands in Terminalterminal is a very powerful tool, but it can be made 'interesting' through a few bash commands that tipsmake.com will introduce to you below. let's follow and learn because some commands are quite useful.
- How to search Google everything with Clipman in Linuxyou can do this by combining the clipman application with a specially formatted url and a simple 'regular expression (regex)' formula '.
- How to Create and Edit Text File in Linux by Using Terminalthis wikihow teaches you how to use the terminal app in linux to create a text file. after doing so, you can use one of linux's built-in text editors to make changes to the file. open terminal. to do so, click menu, then find the terminal...
- How to spell check in Linux Terminallinux also has a command line spell checker utility in terminal. the utility is called aspell and is installed by default on ubuntu. this is how you can use aspell to check spelling in a terminal.
- How to create and delete folders in Linux Terminalfolders are essential for your linux operating system because they contain files you may use often or that the system needs to function correctly.
- 8 best free Terminal Emulator apps for Androidterminal emulator applications on android are handy when you want to execute commands within the android operating system just like on linux.
- How to play chess in Linux terminal (with Multiplayer support over SSH)while playing chess online in a browser is simple, you can also host a two-player game in your terminal, against an opponent in the same room, or via ssh, meaning your opponent can be anywhere in the world.