Tue. Dec 7th, 2021

Being able to Google from the command line might be an environment friendly option to lookup one thing on Linux. Jack Wallen exhibits you the way with the assistance of Googler.


Picture: Zhanna Hapanovich/Shutterstock

The vast majority of folks rely upon Google as a search engine. We use it on daily basis to seek out the required info to maintain us within the know. Once you wish to Google one thing, you both attain on your telephone or open a browser. 

SEE: 40+ open supply and Linux phrases it’s good to know (TechRepublic Premium)

However in the event you’re a Linux consumer, you may want a sooner approach of doing so (as a result of effectivity is the secret). So what if I instructed you it is attainable to carry out a google search from the command line? It isn’t solely attainable, it is simple. 

Now, earlier than we get into this, know that the applying I’ll present solely presents the search outcomes and requires a default net browser to open the outcomes. So, though you’ll be able to concern your preliminary search throughout the command line, clicking a hyperlink will take you out of the command line and right into a GUI utility. Nonetheless, having a Google like this round does have implications for bash scripts and different command line utilities. 

With that stated, let’s set up the newest model of Googler and see the way it’s used. 

To put in Googler, open a terminal window and obtain the newest model with 

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

Upon getting the applying downloaded, transfer it with 

sudo mv googler /usr/native/bin/. 

Lastly, give the script executable permissions with 

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

Googler is able to go. 

To make use of the app, merely kind googler STRING (the place STRING is what you wish to google). 

For instance, if you wish to google TechRepublic, you’d kind 

googler techrepublic. 

In the event you see a outcome that pursuits you, click on on the hyperlink to open your default browser. You may get extra particular together with your searches as nicely. Say you wish to search TechRepublic for Linux content material, that command could be 

googler -w techrepublic.com linux. 

The outcomes would solely present Linux-related content material. 

And that is how one can google from the Linux command line. Take pleasure in this helpful and environment friendly instrument.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise professionals from Jack Wallen.

Additionally see

Source link

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *