The best way to add the facility of DuckDuckGo to your Linux terminal

Getty Photographs/pixdeluxe

Although I do know I can do all the things I must with a GUI in Linux, I nonetheless decide to reap the benefits of the facility, flexibility, and effectivity of the terminal window. Due to that, I like so as to add a bit instrument known as ddgr into the combination.

Ddgr makes it attainable to run a DuckDuckGo search from the Linux terminal window. As a result of DuckDuckGo is extra privacy-focused than Google, I choose to make use of this instrument (over Googler) for terminal-based searches. If you run a search via ddgr, it is going to current hyperlinks you may choose that can open in your default browser. 

Additionally: Greatest safe browsers for privateness

I do know, I do know…you are pondering, “Why not simply run the search via your browser?” To be trustworthy, aside from it being form of cool and enjoyable, it might have bash script and utility implications. However principally, it is only a fast and enjoyable solution to run searches from the command line after which open the ends in your browser. 

Let me first present you tips on how to set up ddgr after which I will show just a few pattern searches.

The best way to set up ddgr

What you may want: To put in ddgr, you may solely want a operating occasion of Linux (it does not matter what distribution) and a person with sudo privileges — that is it. Let’s set up.

The very first thing to do is log in to your desktop and open a terminal window. 

It doesn’t matter what Linux distribution you are utilizing, it’s best to have the ability to set up ddgr, however first you have to set up the make instrument with one of many following instructions:

READ MORE  Best Amazon deal: The bundled Amazon Echo Dot (5th Gen) Kids and Echo Glow is 68% off at Amazon as of Dec. 21.

On a Fedora-based distribution: sudo dnf set up make unzip -yOn a Ubuntu-based distribution: sudo apt-get set up build-essential unzip -y

Obtain the ddgr supply with the next command:

wget https://github.com/jarun/ddgr/archive/refs/tags/v2.1.zip

Ensure that to go to the official ddgr launch web page to be sure to’re downloading the newest model.

Unpack the compressed file with the command:

Be sure to change 2.1 with the model you downloaded.

Turn into the newly created listing with cd ddgr-2.1 (be sure that to interchange 2.1 with the model you downloaded) after which set up ddgr with:

The best way to use ddgr

Now that ddgr is put in, it is prepared for use. This is just a few examples of what you are able to do. One factor to bear in mind is that, whenever you run the ddgr command, you aren’t getting your immediate returned. 

Additionally: The best way to set up Ubuntu Linux (It is easy!)

Due to that method, you may problem one other search with out having to sort ddgr first. To exit the ddgr console, sort q and hit Enter in your keyboard.

1. A fundamental search

You’ll be able to problem a really fundamental search with ddgr. For instance, to seek for Linux on DuckDuckGo, problem the command:

The output will record the highest 10 outcomes. In case you see a hyperlink you need to go to, click on on it, and the hyperlink will open in your browser.

2. Search a web site

As an example you need to search ZDNET for Linux content material. For that, you could possibly problem the command:

READ MORE  The Dyson V15 Detect Is One of Our Favorite Vacuums and Now It's Cheaper Than Ever

The output will likely be Linux-related articles from ZDNET.

3. Bangs 

I am not speaking about your hair. Ddgr additionally helps bangs. Bangs are shortcuts for supporting websites. For instance, the !ubuntuf bang is for the Ubuntu Boards. !zdnet is for ZDNET. So you could possibly search my identify on ZDNET with the bang:

It is vital to notice that you just do have to position the backslash earlier than the ! (bang), in any other case the command is not going to work.

You will discover other ways to make use of ddgr on the official web site.

Additionally: The best way to get began with Git on Linux

And that is all there may be to including a strong DuckDuckGo-based search command to the Linux terminal. If you constantly have a terminal window open, it is a nice solution to search.

Leave a Comment