Skip to content

cowsay

cowsay is a tool that commonly use as a toy example.

Because cowsay is not part of the Linux kernel, users commonly need to install it. Or in our case: load a module to use it.

cowsay (the tool) is part of the identically-named cowsay module.

Finding the module that has cowsay installed:

module spider cowsay
How does that look like?

You output will look similar to this:

[sven@rackham1 ~]$ module spider cowsay

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  cowsay: cowsay/3.03
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    This module can be loaded directly: module load cowsay/3.03

    Help:
       cowsay - use cowsay

Loading the latest version of the cowsay module:

module load cowsay/3.03

Now you can run cowsay:

cowsay hello

results in:

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