Skip to content


Subversion checkout URL

You can clone with
Download ZIP
An easy way to query from the commandline
Branch: master

Merge pull request #14 from chunqishi/master

Add local cache; Add gzip http data; Add JSON filter.
latest commit 47c0867abd
@samirahmed authored
Failed to load latest commit information.
LICENSE.txt Added MIT License Add gzip to request, and save half network time Directly add instead install
fu add cache and regex json array check

What is Fu?

A simple commandline utility for querying

What is is an awesome website written by David Winterbottom It has a collection of neat commandline one liners for the unix shell

Why Fu ?

Fu makes commandlinefu more accessible because I find that I use most when actually in the commandline

How do I use it?

It's easy to install, all you need to do is download and make

$ git clone git://
$ cd fu/
$ sudo make install

Or you just use bash alias if you are working under shell

$ cd ~/workspace
$ git clone git://
$ cd fu/
$ pwd
$ /usr/me/workspace/fu
$ vi ~/.bashrc | vim ~/.bash_profile
$ # add alias line <<|  alias fu="python /usr/me/workspace/fu/fu"
$ source ~/.bashrc |  source ~/.bashrc
$ fu netstat

If that last step doesn't work you can use the

$ sudo python install --record installRecords.txt

You can query fu by adding any search terms as arguments

For example if you want to search for how to "send binary mail attachment"

    $ fu send binary mail attachment                                           
     1  #  Send email with one or more binary attachments
        echo "Body goes here" | mutt -s "A subject" -a /path/to/file.tar.gz

     2  #  Send a binary file as an attachment to an email
        uuencode archive.tar.gz archive.tar.gz | mail -s "Emailing: archive.tar.gz"

        498ms total:2

Dependencies and Fixes

It is possible you might not have some dependencies like argparse installed.

$ sudo easy_install argparse

See the wiki for more help


To remove fu you can do automagically with

$ cd fu/
$ sudo make uninstall

Or you can do it manually by finding the files from your installRecords.txt file and removing them

One will be in your PYTHONPATH, the other in your /usr/local/ path probably


There is a wiki for more examples and info about usage.

Feel free to contribute if you have more ideas!

Something went wrong with that request. Please try again.