HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ddgr — Search DuckDuckGo (HTML version) from the terminal. More information: <https://github.com/jarun/ddgr

Submitted by: @import:tldr-pages··
0
Viewed 0 times
ddgrhtmlcommandfromsearchduckduckgocliversion

Problem

How to use the ddgr command: Search DuckDuckGo (HTML version) from the terminal. More information: <https://github.com/jarun/ddgr#usage>.

Solution

ddgr — Search DuckDuckGo (HTML version) from the terminal. More information: <https://github.com/jarun/ddgr#usage>.

Start in interactive mode:
ddgr


Search DuckDuckGo for a keyword:
ddgr {{keyword}}


Limit the number of search results to n:
ddgr {{[-n|--num]}} {{n}} {{keyword}}


Display the complete URL in search results:
ddgr {{[-x|--expand]}} {{keyword}}


Search DuckDuckGo for a keyword and open the first result in the browser:
ddgr !w {{keyword}}


Perform a website-specific search:
ddgr {{[-w|--site]}} {{site}} {{keyword}}


Search for a specific file type:
ddgr {{keyword}} filetype:{{filetype}}


Display help in interactive mode:
<?>

Code Snippets

Start in interactive mode

ddgr

Search DuckDuckGo for a keyword

ddgr {{keyword}}

Limit the number of search results to `n`

ddgr {{[-n|--num]}} {{n}} {{keyword}}

Display the complete URL in search results

ddgr {{[-x|--expand]}} {{keyword}}

Search DuckDuckGo for a keyword and open the first result in the browser

ddgr !w {{keyword}}

Context

tldr-pages: common/ddgr

Revisions (0)

No revisions yet.