Sun. Apr 28th, 2024

Getty Photographs/pixdeluxe

Despite the fact that I do know I can do all the pieces I must with a GUI in Linux, I nonetheless decide to benefit from the ability, flexibility, and effectivity of the terminal window. Due to that, I like so as to add somewhat 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 can current hyperlinks you may choose that may open in your default browser. 

Additionally: Greatest safe browsers for privateness

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

Let me first present you how you can set up ddgr after which I will exhibit just a few pattern searches.

Methods to set up ddgr

What you may want: To put in ddgr, you may solely want a operating occasion of Linux (it would not matter what distribution) and a consumer 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 is best to have the ability to set up ddgr, however first you could set up the make instrument with one of many following instructions:

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 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:

Be sure to exchange 2.1 with the model you downloaded.

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

Methods 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 do not get your immediate returned. 

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

Due to that method, you may situation 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 fundamental search

You may situation a really fundamental search with ddgr. For instance, to seek for Linux on DuckDuckGo, situation the command:

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

2. Search a web site

For example you wish to search ZDNET for Linux content material. For that, you possibly can situation the command:

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

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

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

Additionally: Methods to get began with Git on Linux

And that is all there’s to including a strong DuckDuckGo-based search command to the Linux terminal. If you persistently have a terminal window open, this can be a nice strategy to search.

Avatar photo

By Admin

Leave a Reply