For those who love to do things directly from the terminal, this time I will show you how to use the terminal to perform web searches.
Although on some occasion we talked about how to use the terminal to be able to search with the help of Google, this time we will use the DuckDuckGo search engine.
The tool that we will use for this is called ddgr, which is an open source application and it is not an official tool, so it is not linked in any way with the search engine.
Ddgr allows us to choose the amount of results that will show us in the terminal window, which, unlike the web version, is a plus.
This tool has the following characteristics:
- Choose the number of search results to search
- Support for Bash AutoComplete
- Open URL in a browser / li>
- Option "I feel lucky"
- Filter by time, region, file type, etc.
- Minimal dependencies
Table of Contents
How to install ddgr on Linux?
Ddgr can be installed in Linux so we can go to the developer's git and download its code to be able to use the link is this.
How to install ddgr on Ubuntu?
In the case of Ubuntu and derivatives we have a repository that is maintained directly by the creator of the tool, so the support is direct.
To add this repository we can do it by opening a terminal and executing the following command:
sudo add-apt-repository ppa:twodopeshaggy/jarun
Now we proceed to update the repositories:
sudo apt update
And finally we proceed to install the application:
sudo apt upgrade
How to use Ddgr?
To start using this tool we must open a terminal and execute the following command
Then enter a search term:
Imagenes de linux
To limit the number of results returned, run:
ddgr --num 5 imagenes de linux
To instantly open the first matching result for a search term in your browser, run
ddgr -j término de búsqueda
You can pass arguments and flags to limit your search. To see a complete list inside the terminal run:
Without more it is an excellent option to have in the repertoire of applications.
A comment, leave yours
Hello, I am missing an important step,
sudo apt install ddgr