Rahul Sharma (Editor)

Cowsay

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Original author(s)
  
Tony Monroe

Operating system
  
Cross-platform

Written in
  
Perl

Available in
  
English

Cowsay

Stable release
  
3.03 / May 28, 1999; 17 years ago (1999-05-28)

License
  
Artistic License / GNU General Public License

cowsay is a program that generates ASCII pictures of a cow with a message. It can also generate pictures using pre-made images of other animals, such as Tux the Penguin, the Linux mascot. It is written in Perl. There is also a related program called cowthink, with cows with thought bubbles rather than speech bubbles. .cow files for cowsay exist which are able to produce different variants of "cows", with different kinds of "eyes", and so forth. It is sometimes used on IRC, desktop screenshots, and in software documentation. It is more or less a joke within hacker culture, but has been around long enough that its use is rather widespread. In 2007, it was highlighted as a Debian package of the day.

Example

The Unix command fortune can also be piped into the cowsay command:

And using the parameter -f followed by tux, one can replace the cow with other beings, such as Tux, the Linux mascot:

Or other things:

Using the parameter -l shows all available cowfiles:

If a user wants to show examples of all the different cowfiles they can run this command:

Once the user has this output they can either pipe:

Or just cowsay their text:

References

Cowsay Wikipedia