Pages

125 x 125 Ad Section

Rabu, 08 Desember 2010

0 Interactive Terminal Greeting

Anyway, I'm not going to elaborate on basic terminal command(s)...you can learn more about that from here --> Unix Toolbox

I wanted to make a very short tutorial about how you can make terminal more interactive & fun to work in. Well if you're interested, then read on.
Basically you need to install the applications cowsay & fortune from your package manager.
If you're running Ubuntu or it's derivatives, simply type the following in a terminal:


$sudo aptitude install fortune cosway

After you're done with the installation, open up /etc/bash.bashrc with your favorite text editor, or type in a terminal:

$sudo gedit /etc/bash.bashrc

Now, scroll down to the bottom & paste the following lines:

# Spicing up Terminal
fortune | cowsay -n -f small.cow
echo


It should be similar to something like this:

After you're done, save the changes & exit.

Now, whenever you open a new terminal, a character will greet you with a totally random quote

Tidak ada komentar:

Posting Komentar

Make Money While You Sleep

boss-mails.com