Even although I do know I can do every little thing I would like to with a GUI in Linux, I nonetheless decide to take benefit of the power, flexibility, and effectivity of the terminal window. Because of that, I like to add slightly software known as ddgr into the combine.
Ddgr makes it potential to run a DuckDuckGo search from the Linux terminal window. Because DuckDuckGo is extra privacy-focused than Google, I desire to use this software (over Googler) for terminal-based searches. When you run a search by way of ddgr, it should current hyperlinks you possibly can choose that may open in your default browser.
Also: Best safe browsers for privateness
I do know, I do know…you are pondering, “Why not just run the search through your browser?” To be trustworthy, aside from it being sort of cool and enjoyable, it might have bash script and utility implications. But principally, it is only a fast and enjoyable approach to run searches from the command line after which open the ends in your browser.
Let me first present you the way to set up ddgr after which I’ll show a couple of pattern searches.
How to set up ddgr
What you will want: To set up ddgr, you will solely want a operating occasion of Linux (it does 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.
No matter what Linux distribution you are utilizing, you ought to be ready to set up ddgr, however first it’s essential to set up the make software with one of the 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
Download the ddgr supply with the following command:
wget https://github.com/jarun/ddgr/archive/refs/tags/v2.1.zip
Make positive 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:
Make positive you substitute 2.1 with the model you downloaded.
Change into the newly created listing with cd ddgr-2.1 (be certain that to substitute 2.1 with the model you downloaded) after which set up ddgr with:
How to use ddgr
Now that ddgr is put in, it is prepared to be used. Here’s a couple of examples of what you are able to do. One factor to take into account is that, whenever you run the ddgr command, you do not get your immediate returned.
Also: How to set up Ubuntu Linux (It’s straightforward!)
Because of that strategy, you possibly can difficulty one other search with out having to sort ddgr first. To exit the ddgr console, sort q and hit Enter on your keyboard.
1. A fundamental search
You can difficulty a really fundamental search with ddgr. For instance, to seek for Linux on DuckDuckGo, difficulty the command:
The output will record the high 10 outcomes. If 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
Let’s say you need to search ZDNET for Linux content material. For that, you can difficulty the command:
The output might be Linux-related articles from ZDNET.
3. Bangs
I’m not speaking about your hair. Ddgr additionally helps bangs. Bangs are shortcuts for supporting websites. For instance, the !ubuntuf bang is for the Ubuntu Forums. !zdnet is for ZDNET. So you can search my title on ZDNET with the bang:
It’s vital to be aware that you just do have to place the backslash earlier than the ! (bang), in any other case the command won’t work.
You can discover alternative ways to use ddgr on the official web site.
Also: How 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. When you persistently have a terminal window open, it is a good way to search.
…. to be continued
Read the Original Article
Copyright for syndicated content material belongs to the linked Source : ZDNet – https://www.zdnet.com/article/how-to-add-the-power-of-duckduckgo-to-your-linux-terminal/#ftag=RSSbaffb68