Google Plus

How to use google search from the Terminal

Written by Mel Kham on . Posted in Frequently Asked Questions

How to use google search from the Terminal?

Can be sometimes interessing to try search google from your Terminal, in your server for example while you have no graphic interface. Learn how to do that is easy and can do it in 2 steps :



1- First install the curl and html2text

sudo apt-get install curl html2text

2- Now to search for example the word ‘linux’ you will have to type this command :

curl -A Mozilla http://www.google.com/search?q=linux  |html2text -width 70

Output :

zinovsky@zinovskyhowtos:~$ curl -A Mozilla http://www.google.com/search?q=linux  |html2text -width 70
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27511 0 27511 0 0 83162 0 --:--:-- --:--:-- --:--:-- 98k
Web Images Videos Maps News Shopping Gmail more �
Search settings | Sign in
[Google] [linux ] Advanced Search
[Search]
Web
Hide optionsShow options...
Results 1 - 10 of about 300,000,000 for linux [definition]. (0.19
seconds)
***** Sponsored Links *****
1. **** Free Software Master ****
Become a qualified Free software
professional with UOC's Programs.
www.uoc.edu
2. **** LOI opleiding Linux ****
Haal je Linux certificaat via
afstandsonderwijs bij LOI!
www.loi.nl/linux
3. **** Vergeet Windows ****
Ga voor veiligheid, stabiliteit &
lagere kosten met Linux software.
www.kratz.nl/Linux
4. **** Linux Downloads ****
Live Webinar: Architecting Embedded
Databases for High Performance Apps
www.mysql.com
5. **** Os Linux ****
Vind Os Linux bij Ask
Zoek met Ask zorg voor Resultaten!
www.Ask.com
6. **** Linux Download ****
Linux Download Downloads
Linux Download Gratis!
Download.gratissoftware.nu
7. **** Linux nodig? ****
De beste software op een rij.
Linux op VERGELIJK.NL!
www.vergelijk.nl/software
8. **** Free Multi-Seat Linux ****
Turn 1 Linux computer into 2
Free download and license
userful.com/free-multi-seat-linux



***** Search Results *****
1. **** The Linux Home Page at Linux Online ****
Comprehensive information and resources about the Linux
Operating System.
Download Info - Distributions - Courses - General Info
www.linux.org/ -Similar
2. **** Ubuntu Linux ****
Official site; Commercially sponsored Debian-derived Linux
distribution that focuses on usability, a regular 6-month
release cycle, and a commitment to at ...
www.ubuntu.com/ -Cached - Similar
3. **** Linux - Wikipedia, the free encyclopedia ****
This article is about operating systems that use the Linux
kernel. For the kernel itself, see Linux kernel. For other uses,
see Linux (disambiguation). ...
History - Design - Development - Uses
en.wikipedia.org/wiki/Linux -Cached - Similar
4. **** News results for linux ****
Just how valuable are those 'Linux-related' Microsoft patents?
- 5 hours ago
by Matt Asay The Open Invention Network (OIN), a patent defense
coalition for Linux whose members include IBM and Red Hat,
trumpeted the news that it had ...
CNET News- 120 related articles �
Microsoft and Best Buy Gang Up On Linux -PC World- 57 related
articles �
Nokia to skip operator tailoring for Linux phones -Reuters
Canada- 32 related articles �
5. **** redhat.com | The World's Open Source Leader ****
Red Hat is the world's leading open source technology solutions
provider with offerings including Red Hat Enterprise Linux, open
source applications, ...
www.redhat.com/ -Cached - Similar
6. **** Debian GNU/Linux ****
Debian GNU/Linux is a free distribution of the GNU/Linux
operating system. It is maintained and updated through the work
of many users who volunteer their ...
www.debian.org/ -Cached - Similar
7. **** Welcome to Linux.com: Your Source for All Things Linux ****
Linux.com - For the community, by the community, Linux.com is
the central source for Linux information, software,
documentation, how-tos and answers across ...
www.linux.com/ -Cached - Similar
8. **** DistroWatch.com: Put the fun back into computing. Use
Linux, BSD. ****
News and feature lists of Linux and BSD distributions.
distrowatch.com/ -Cached - Similar
9. **** Mandriva ****
Mandriva Linux, an open source operating system aimed at
individuals and companies,; Pulse, a solution to manage
heterogeneous IT infrastructure. ...
www.mandriva.com/ -Cached - Similar
10. **** Fedora Project ****
Fedora is a Linux-based operating system that showcases the
latest in free and open source software. Fedora is always free
for anyone to use, modify, ...
fedoraproject.org/ -Cached - Similar
11. **** Kubuntu | linux for human beings | Kubuntu ****
An official derivative of Ubuntu Linux that uses the KDE
graphical environment instead of GNOME.
www.kubuntu.org/ -Similar
12. **** Blog posts about linux ****
The big guns of Linux kernel development | Software, Interrupted
... - Software, Interrupted - 21 Aug 2009
Microsoft 'indoctrinates' Best Buy workers with anti-Linux 'lies
... - DailyFinance - 2 days ago
Novell's Linux revenue soars 22 percent, while everything else
... - The Open Road - 27 Aug 2009
Searches related to: linux
linux download linux vs windows suse linux linux xp
red hat linux linux commands learn linux linux distro


1 2 3 4 5 6 7 8 9 10 Next
[linux ] [Search]
Search within results - Language Tools - Search Help - Dissatisfied?
Help us improve - Try Google Experimental
Google Home - Advertising Programs - Business Solutions - Privacy -
About Google
zinovsky@zinovskyhowtos:~$

 


Links :

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Jacob Williams

    Try adding this function to your .bashrc:

    [code]
    function google() { curl -A Mozilla "http://www.google.com/search?q=`perl -MURI::Escape -e "print uri_escape('${*}');"`" | html2text -width `tput cols` | less; }
    [/code]

    I bet someone can make it even better.

  • Moe Zilla

    w3m is pretty handy. Installs via fink on macs, or via apt/synaptic on Ubuntu.

    $ man w3m ….

    You have to use sed to strip out the ads, given that Firefox AdBlocker and ModifyGoogle aren’t available on the command line.

    moe$ w3m -dump http://www.google.com/search?q=linux | sed -e ’1,/Search Results/d’

    1. The Linux Home Page at Linux Online

    Comprehensive information and resources about the Linux Operating System.
    Download Info – Distributions – Courses – General Info
    http://www.linux.org/ – Similar
    2. Ubuntu Linux

    Official site; Commercially sponsored Debian-derived Linux distribution
    that focuses on usability, a regular 6-month release cycle, and a
    commitment to at …
    http://www.ubuntu.com/ – Cached – Similar
    3. Linux – Wikipedia, the free encyclopedia

    This article is about operating systems that use the Linux kernel. For the
    kernel itself, see Linux kernel. For other uses, see Linux
    (disambiguation). …
    History – Design – Development – Uses
    en.wikipedia.org/wiki/Linux – Cached – Similar
    4. News results for linux

    [news] If Microsoft really wants to be friends with Linux…‎ -
    20 minutes ago
    Just off the top of my head there’s the revelation that Microsoft’s
    ExpertZone training for Best Buy and other retailers is stuffed with
    anti-Linux lies. …
    Computerworld – 75 related articles >>
    Microsoft Linux-bashing hits a nerve‎ – eWeek – 137 related
    articles >>
    Microsoft and Best Buy Gang Up On Linux‎ – PC World – 67 related
    articles >>

    5. redhat.com | The World’s Open Source Leader

    Red Hat is the world’s leading open source technology solutions provider
    with offerings including Red Hat Enterprise Linux, open source
    applications, …
    http://www.redhat.com/ – Cached – Similar
    6. Welcome to Linux.com: Your Source for All Things Linux

    Linux.com – For the community, by the community, Linux.com is the central
    source for Linux information, software, documentation, how-tos and answers
    across …
    http://www.linux.com/ – Cached – Similar
    7. DistroWatch.com: Put the fun back into computing. Use Linux, BSD.

    Sep 9, 2009 … News and feature lists of Linux and BSD distributions.
    distrowatch.com/ – Cached – Similar
    8. Fedora Project

    Fedora is a Linux-based operating system that showcases the latest in free
    and open source software. Fedora is always free for anyone to use, modify,

    fedoraproject.org/ – Cached – Similar
    9. http://www.centos.org – The Community ENTerprise Operating System

    CentOS is an Enterprise-class Linux Distribution derived from sources
    freely provided to the public by a prominent North American Enterprise
    Linux vendor. …
    http://www.centos.org/ – Cached – Similar
    10. The Slackware Linux Project

    The original Linux distribution, geared towards power and stability. FAQ,
    support, news, mailing lists, downloads, and links.
    http://www.slackware.com/ – Cached – Similar
    11. Gentoo Linux — Gentoo Linux News

    The official pages for the distribution provide documentation, downloads
    and installation instructions, mailing-lists, forums, performance reviews
    and news.
    http://www.gentoo.org/ – Cached – Similar
    12. Blog posts about linux

    The big guns of Linux kernel development | Software, Interrupted … -
    Software, Interrupted – Aug 21, 2009
    Microsoft ‘indoctrinates’ Best Buy workers with anti-Linux ‘lies … -
    DailyFinance – 4 days ago
    How to set up Ubuntu Linux on a Mac — it’s easy and free -
    The Unofficial Apple Weblog (TUAW) – 3 days ago

    13. Book results for linux

    Linux in a nutshell – by Ellen Siever, Stephen Figgins – 925 pages
    Linux: the complete reference – by Richard Petersen – 830 pages
    Advanced Linux programming – by Mark Mitchell, Jeffrey Oldham, Alex Samuel
    – 340 pages

    Searches related to: linux
    linux download linux vs windows suse linux linux xp
    red hat linux linux commands learn linux linux distro

    ● ● ● ● ● ● ● ● ● ● ● [nav_next]
    1 2 3 4 5 6 7 8 9 10 Next

    [linux ] [Search]
    Search within results – Language Tools – Search Help – Dissatisfied? Help us
    improve – Try Google Experimental

    Google Home – Advertising Programs – Business Solutions – Privacy – About
    Google

  • noname

    http://goosh.org/

    try this

    its beter

    and works fine with textt only web browsers like elinks

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

AD

|

I need some Help on Linux,can you guide me ?

Edson Carlos

|

In debian no found. I need link download install in linux debian

jacky can

|

You can actually unzip your secret archive by leaving out the -t option, instead using:

unzip newPhoto.jpg

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .