They offer different flash templates with latest features.

Forgot password
Written by:
Score: 14
votes: 18
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/


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

5 months ago

any idea how i can enable this in opensuse  
3 years ago

5 years ago

Cool! I get my deer back again!

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

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

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