How to use google search from the Terminal

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

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/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0