• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoShowcaseGoogleHow to access Google search engine from the comman ...
Previous Next

How to access Google search engine from the command line on pcDuino Ubuntu

Posted by: Yang , July 10, 2014

Google

Let’s start right with a giant: Bing! No just kidding, Google. To be frank, you don’t really need a utility to search on Google from the command line. A simple:

 $ xdg-open https://www.google.com/search?q="[query]"

would open your web browser on the appropriate search page. However, if what you want is to see the results of that search from a terminal window, without opening any kind of web browser, I would recommend using cli-google. It is super old (last updated in 2009) but I like it. It is a simple and straightforward application which does exactly what it’s supposed to do.

 $ git clone https://github.com/henux/cli-google
 $ cd cli-google/
 $ make install

Once you install cli-google, you can do searches with a colored output. You can also adjust the amount of results and the language that you want. Just type:

 $ google

in your terminal to see all the options.

`google` is a command line tool for doing Google searches from the
terminal.  To install the package to your system, run `make install` as
root.

Usage: google [OPTIONS] KEYWORDS...

Options
  -s N     start at the Nth result
  -n N     shows N results
  -l LANG  display in language LANG, such as fi for Finnish
  -C       enable color output
  -j       open the first result in a web browser

Report bugs to <henux@users.sourceforge.net>.

See the manual page for full details.  Have fun!

 

Tags: Google

Share!
Tweet

Yang

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors