Use the DuckDuckGo search engine from the terminal 


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

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:

ddgr -h

Without more it is an excellent option to have in the repertoire of applications.

The content of the article adheres to our principles of editorial ethics. To report an error click here.

A comment, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Milo DCZ said

    Hello, I am missing an important step,
    sudo apt install ddgr