Girish Venkatachalam is a UNIX hacker with more than a decade of
networking and crypto programming experience.
His hobbies include yoga,cycling, cooking and he runs his own
business. Details here:
http://gayatri-hitech.com
http://spam-cheetah.com
I can't think of a better way to start this article than this.
Long ago, sometime in 2001 I came to know about a certain command line tool which I had not heard. I expressed a lot of surprise and regret at that to which my friend said simply.
In the ocean there are innumerable creatures. We cannot know about every single organism.
Later I lost touch with that friend but I remember his words. It only gets worse with a new exciting tool showing up on sourceforge every other day. But I normally wait for OS vendors to pull the packages into their tree.
We are going to take a brief look at a few of them. They are fun tools and these tools have gone a long way in improving the sex appeal of UNIX. And geeks like us.
After all hackers are not boring people with no interest in women and with women having nothing of interest in them. Hackers love fun too except that their idea of fun is bit different. Let us take a look at the ASCII art generation program figlet first.
figlet(1) generates ASCII art text by taking input from the command line and spits out a big ASCII rendering to stdout. You can choose from a big list of fonts and styles. Like all UNIX tools this one comes with a lot of options. You can get creative and use tr(1) or sed(1) and further beautify the output. Here is a sample.
* *
** * * **
** *** ** **
** * ** **
** ******** ** *** ****
** *** *** ******** ** *** *** **** **** * ***
** * *** *** ** ** * *** * *** ** **** * ***
*** *** ** ** *** *** * *** ** * ***
** ** ** ** ** ** ** *** ** ** ***
** ** ** ** ** ** ******** ** ********
** ** ** ** ** ** ******* ** *******
** ** ** ** ** ** ** ** **
** ** ** ** ** ** **** * *** **** *
** ** *** * ** ** ** ******* *** *******
** ** *** ** ** ***** *****
* *
* *
* *
* *
$ figlet -fcaligraphy hi there
gave this output. The biggest problem with ASCII art is the silly line wrapping done by e-mail clients and several several programs. So you have to be really careful! I have warned you. It will completely mangle the output.
The fortune(1) program must doubtless be familiar to your ears still it is worth mentioning. You can type it on the console without any arguments and it will print a random cookie. Some witty saying, some thought provoking quote or some such thing. It is one of the ways in which I got around my boredom.
I was particularly impressed with the randtype utility. It is quite amazing since it is just one C file but it produces a very spooky looking output that would instantly remind one of UNIX. In fact I loved the utility so much that I went ahead and ported it to OpenBSD, my OS of choice.
randtype(1) is not only a fun tool but also useful since it simulates a user sitting and typing on a console/terminal. Just try this and you will know what I mean.
$ randtype /etc/passwd
Shows the power of C programming!
I have always felt that the power of nCurses programming is best tapped by Perl programming rather than C. Curses programming is so messy with C. The Term::Animation CPAN module and the Curses::UI module will illustrate that fact.
Still ASCII art and console animations look weird to people. Even mplayer can play video on the console using libcaca or something. Seeing a motion picture with ASCII is odd but hackers do what they want. Not what others want.
I am not finished yet. You should perhaps now go to sourceforge and search for fun. No pun intended.
More Articles by Girish Venkatachalam
/Girish/gv-fun-tools.html copyright August 2009 Girish Venkatachalam All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Wed Aug 19 16:52:10 2009: Subject: TonyLawrence
hackers are not boring people with no interest in women and with women having nothing of interest in them.
Some hackers ARE women. Also, some hackers are homosexual.
For all we know, some may be little green men who reproduce by budding.
Wed Aug 19 22:21:14 2009: Subject: CorkyAgain
Some hackers are even pedantically politically correct. ;-)
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar