How to run a Google search from the Linux command line

3 years ago 498

Having the quality to Google from the bid enactment tin beryllium an businesslike mode to look up thing connected Linux. Jack Wallen shows you however with the assistance of Googler.

linux.jpg

Image: Zhanna Hapanovich/Shutterstock

The bulk of radical beryllium connected Google arsenic a hunt engine. We usage it each time to find the indispensable accusation to support america successful the know. When you privation to Google something, you either scope for your telephone oregon unfastened a browser. 

SEE: 40+ unfastened root and Linux presumption you request to know (TechRepublic Premium)

But if you're a Linux user, you mightiness privation a faster mode of doing truthful (because ratio is the sanction of the game). So what if I told you it's imaginable to execute a google hunt from the bid line? It's not lone possible, it's easy. 

Now, earlier we get into this, cognize that the exertion I'm going to amusement lone presents the hunt results and requires a default web browser to unfastened the results. So, though you tin contented your archetypal hunt wrong the bid line, clicking a nexus volition instrumentality you retired of the bid enactment and into a GUI application. However, having a Google similar this astir does person implications for bash scripts and different bid enactment utilities. 

With that said, let's instal the latest mentation of Googler and spot however it's used. 

To instal Googler, unfastened a terminal model and download the latest mentation with 

wget https://raw.githubusercontent.com/jarun/googler/v4.3.2/googler. 

Once you person the exertion downloaded, determination it with 

sudo mv googler /usr/local/bin/. 

Finally, springiness the publication executable permissions with 

sudo chmod +x /usr/local/bin/googler. 

Googler is acceptable to go. 

To usage the app, simply benignant googler STRING (where STRING is what you privation to google). 

For example, if you privation to google TechRepublic, you'd type 

googler techrepublic. 

If you spot a effect that interests you, click connected the nexus to unfastened your default browser. You tin get much circumstantial with your searches arsenic well. Say you privation to hunt TechRepublic for Linux content, that bid would be 

googler -w techrepublic.com linux. 

The results would lone amusement Linux-related content. 

And that's however you tin google from the Linux bid line. Enjoy this useful and businesslike tool.

Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.

Open Source Weekly Newsletter

You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays

Sign up today

Also see

Read Entire Article