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
fortune
// 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 |
                ||     ||

Comments

Popular posts from this blog

JavaScript math methods

JavaScript default parameters

How to use 'console.assert' for assertion in JavaScript

HTML minifier module for Nodejs

Tar basic commands to store and extract files