LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

google

Command-line Google search tool

TLDR

Search Google
$ google "[search query]"
copy
Search and open first result
$ google -j "[query]"
copy
Search news
$ google -N "[query]"
copy
Search images
$ google -I "[query]"
copy

SYNOPSIS

google [options] query

DESCRIPTION

google is a command-line tool for searching Google directly from the terminal. It displays results with titles and URLs, or opens them in a browser.The tool provides quick access to search without leaving the terminal, with flags for different search types including news and images.

PARAMETERS

QUERY

Search terms.
-j, --lucky
Open first result.
-N, --news
Search news.
-I, --images
Search images.
-n NUM
Number of results.
--help
Display help information.

CAVEATS

May need API key. Rate limits apply. googler is similar alternative.

HISTORY

Various command-line Google search tools have been created for terminal-centric workflows.

SEE ALSO

googler(1), ddgr(1)

Copied to clipboard
Kai