They offer different flash templates with latest features.
Login

Forgot password
Register
Back
Written by:
crismblog
Score: 13
votes: 15
Format: Article

 Get fortune cookies on your terminal


This is a purely fun thing. You might wanna get your daily fortune cookie whenever you open your terminal. Here’s a way to do this. You need to have fortune installed. So go ahead and install fortune.

sudo yum install fortune or

sudo apt-get install fortune

depending on your distro. Let’s try it out.I got this.

Looks good but it can be made much fancier. How abt having tux or a dead cow say the fortune cookie. Install cowsay the same way as you did for fortune. Let’s try it out.


Haha ! look a dead cow :P . There are a lot of options in cowsay . You can change the animal’s eyes, tongue etc … . Wouldn’t you like some fortune cookie to pop up whenever you open a new terminal. It’s simple. Go ahead and edit the .bashrc file. Add the following line

fortune | cowsay -f tux

inside the if block in the file. Save the .bashrc file and then try opening a new terminal. Voila

Can’t beat that :D . You can experiment with fortune and cowsay. You can choose the type of cookies that you get with fortune like explicit, famous sayings etc.

Cheerios \m/

source: http://bitsquad.co.in/2011/01/get-fortune-cookies-on-your-terminal/


Tags: fortune, terminal, cowsay, tuxsay, tux, cow, terminal, tutorials, bashrc
Created: 2 years ago.
Last edited: 2 years ago.
Reviewed: 2 years ago.
Read 0 times.

Comments
10 months ago

jahid_0903014
funny...  
2 years ago

mintweike
Cool! I get my deer back again!

By the way! Linus Torvalds really did say that words?
 
2 years ago

crismblog
Many do not know what to do and why do these tutorials, even if simple.  
2 years ago

chassum
That's what I'm talking about! Seriously, little things like this can make the command-line more exciting for a whole new generation of Linux users.  

Other tutorials from crismblog