When you pass a text to cowsay it will be printed like this
root@0x80:~# cowsay "It's Just a Test" __________________ < It's Just a Test > ------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
Good … now what we are going to talk about is , how to configure a customized cow to say whatever you want each time you open your Terminal (bash,*sh,*shell,..etc).
First we have to download cowsay, you can download it from Tonie’s website and read the instillation instruction if you are a newbie in Linux things, or simply just ask me. Another way is you can use your packages management system which is emerge in Gentoo , APT in Debian/Ubuntu , yum in Fedora/..etc . Here, we are going to use apt-get.
root@0x80:~# apt-get install cowsay
that’s it cowsay is installed , now lets move to the configuration, we will write a script in /usr/bin or whatever bin directory in your PATH environment. And that file is a script which will run our customized cowsay each time a terminal is opened. use your preferred text-editor, or any other easier & faster ways like this one
root@0x80:~# cat >> __EOF__ < /usr/bin/mycowsay > #!/bin/bash > cowsay ""Hello, Again\!\! Dont you get bored? haha okey type type type like a biatch\!\! :P "" > __EOF__
thats it, you might have to change the permission of mycowsay script to suites you. Now add it to .bashrc you’ll find it at HOME/.bashrc (~/.bashrc) add this line on the top
# Our Customized Cowsay /usr/bin/mycowsay
and now each time you open your terminal you’ll get the cowmsg .. ^_^ Enjooo0o0o0oy with your cow ;)!!