Installing and using 'cowsay' with fortune

what is 'cowsay' it's a simple commandline program of a cow which basically prints whatever text argument you pass to it inform of a speech bubble from a ancii cow

c:owsay goes hand in hand with another cli programme called fortune it generates text fortune messages which can be easy be tunnelled into cowsay

Cowsay is so popular that i decides to write a how to installation post

To get started open your commandline terminal and type
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install cowsay

To install another cli app 'fortune'
type the following in your terminal

sudo apt-get install fortune

After installation test fortune by typing in your console
// typical response
Training is everything.  The peach was once a bitter almond; cauliflower is
nothing but cabbage with a college education.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"

To test cowsay type cowsay followed by a command you want to be said 
Cowsay will print a cow in your console with a speech bubble of your message ie
cowsay "hello world"
// response

< hello world >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Almost done finally to make cowsay fortunes you'll need to type
fortune | cowsay
// response
< Your aim is high. >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


Popular posts from this blog

How to set content disposition header for nginx server to force content download

Animated daylight on HTML5 Canvas

How to make a static http server in nodejs using express

How to make a Snake Game using JavaScript and html5

JS13K Preparation