javascript hit counter
Business, Financial News, U.S and International Breaking News

add the facility of DuckDuckGo to your Linux terminal

woman working on computer

Getty Photos/pixdeluxe

Though I do know I can do all the pieces I must with a GUI in Linux, I nonetheless choose 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 software referred to as ddgr into the combination.

Ddgr makes it doable to run a DuckDuckGo search from the Linux terminal window. As a result of DuckDuckGo is extra privacy-focused than Google, I favor to make use of this software (over Googler) for terminal-based searches. Once you run a search by means of ddgr, it should current hyperlinks you’ll be able to choose that can open in your default browser. 

Additionally: Finest safe browsers for privateness

I do know, I do know…you are pondering, “Why not simply run the search by means of your browser?” To be sincere, aside from it being sort of cool and enjoyable, it might have bash script and software implications. However principally, it is only a fast and enjoyable option to run searches from the command line after which open the leads to your browser. 

Let me first present you easy methods to set up ddgr after which I will reveal a number of pattern searches.

set up ddgr

What you will want: To put in ddgr, you will solely want a working occasion of Linux (it would 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, you must be capable of set up ddgr, however first you need to set up the make software with one of many following instructions:

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

Obtain the ddgr supply with the next command:


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

Unpack the compressed file with the command:


Ensure you change 2.1 with the model you downloaded.

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

sudo make set up

use ddgr

Now that ddgr is put in, it is prepared for use. Here is a number of examples of what you are able to do. One factor to remember is that, while you run the ddgr command, you do not get your immediate returned. 

Additionally: set up Ubuntu Linux (It is simple!)

Due to that method, you’ll be able to difficulty one other search with out having to kind ddgr first. To exit the ddgr console, kind q and hit Enter in your keyboard.

1. A primary search

You possibly can difficulty a really primary search with ddgr. For instance, to seek for Linux on DuckDuckGo, difficulty the command:

ddgr Linux

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

2. Search a website

For instance you need to search ZDNET for Linux content material. For that, you possibly can difficulty the command:

ddgr -w Linux

The output shall 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 possibly can search my identify on ZDNET with the bang:

ddgr !zdnet jack wallen

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

Yow will discover alternative ways to make use of ddgr on the official website.

Additionally:  get began with Git on Linux

And that is all there may be to including a robust DuckDuckGo-based search command to the Linux terminal. Once you constantly have a terminal window open, this can be a nice option to search.

This text was initially revealed by Learn the authentic article right here.

Comments are closed.