Cowsay is a command line utility

19.08.2023
23:18

Cowsay is a command-line utility on Unix and Unix-like operating systems that allows you to create ASCII-art drawings of cows and display their messages. Cowsay can report any textual information provided to it. The utility also supports various flags and parameters to customize the appearance and behavior of cow drawings. Cowsay is commonly used to add humor and personalize command line output.

How to use

It is very convenient to use for terminal greeting. You can install the program from the official Ubuntu repositories with the command:

 sudo apt-get install cowsay

You can use any other animal, a list of possible options is output with the command:

cowsay -l
Cow files in /usr/share/cowsay/cows:
apt beavis.zen bong bud-frogs bunny calvin cheese cock cower daemon default
dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep
ghostbusters gnu head-in hellokitty kiss kitty koala kosh luke-koala
mech-and-cow meow milk moofasa moose mutilated pony pony-smaller ren sheep
skeleton snowman sodomized-sheep stegosaurus stimpy suse three-eyes turkey
turtle tux unipony unipony-smaller vader vader-koala www

Then, to select an option use the -f option. For example:

 cowsay -f dragon "Hello World"
15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

19.08.2023
8 240
Knowledge base / Decoration
Fallout terminal on Linux
19.08.2023
83 922
Knowledge base / Commands
The cd command to change a directory
19.08.2023
33 971
Knowledge base / Commands
What the rm command is for