← Back to list

How to make your terminal greet you with cowsay and fortune

Cowsay is an excellent small program that all it does is display a cow (or any of 50 or more other figures) with the indicated message…

Ernesto Cobos · 2022-04-11 10:26 · 1 claps · 1.8 min read
#terminal #linux #mac #cowsay
Open on Medium ↗
Wiki topics: 🔓 · Open Source

How to make your terminal greet you with cowsay and fortune

Cowsay is an excellent small program that all it does is display a cow (or any of 50 or more other figures) with the indicated message; once installed, its most basic form would be the following:

cowsay saying, “Hello, Mr. Cobos.”

cowsay saying, “Hello, Mr. Cobos.”

cowsay takes whatever is typed after the command and prints it as what the cow says. How about a cow with its eyes closed?

It has several options for eyes and tongues, with man cowsay you can see the help and know it, but what about better changing the figure, use the -l option:

In addition to telling you where the files are located, it shows you their names, and with the -f option, you then change the figure,

fortune

Fortune is a program that randomly shows an adage; some are usually very funny. There is everything from technology, politics, culture, humor, etc. Almost all current distributions include it and just send it to write fortune; let’s see some examples:

Cowsay and fortune

Now let’s combine both programs through a pipe ‘|.’

And this is how it looks if you mix it with lolcat

..


메타데이터
post_id
5709e5e87a3
slug
how-to-make-your-terminal-greet-you-with-cowsay-and-fortune-5709e5e87a3
url
https://medium.com/@ernestocobos/how-to-make-your-terminal-greet-you-with-cowsay-and-fortune-5709e5e87a3
canonical_url
https://medium.com/@ernestocobos/how-to-make-your-terminal-greet-you-with-cowsay-and-fortune-5709e5e87a3
author_url
https://medium.com/@ernestocobos
status
ok
fetched_at
2026-07-27 07:00:34