This week, we're on a quest to uncover the hidden treasures within Linux. Are you ready to explore the quirky side of your favorite OS? Each day, we'll post a clue leading to a famous Linux Easter egg. Solve the clue, find the Easter egg, and share your discovery with us using #FOSSLinuxHunt! Let the hunt begin!
This thread is a reference for detailed step-by-step answers.
Original Tweet:
https://twitter.com/FOSSLinux/status/1771645976282910898
DAY 1 - A Cow That Speaks
In the pasture of commands, a bovine friend awaits, ready to share wisdom or your fortune state. Ask her what she sees, but choose your words right, for she speaks only when the command is tight.
Tweet: https://twitter.com/FOSSLinux/status/1771922763608944790
The Easter egg is cowsay!
cowsay
is a simple text filter program that takes input from standard input or the command line and shows it in the speech bubble of an ASCII cow. It's widely used in the Linux community for fun terminal outputs and can be customized with various characters.
Step 1: Installation
Let's ensure cowsay
is installed on your system. Here's how to do it for major Linux distributions.
-
Ubuntu/Debian:
Open a terminal and type:sudo apt update sudo apt install cowsay
-
Fedora:
In a terminal, enter:sudo dnf install cowsay
-
Arch Linux:
Use the following command in a terminal:sudo pacman -S cowsay
-
openSUSE:
Type in a terminal:sudo zypper install cowsay
Step 2: Making the Cow Speak
After installing cowsay
, it's time to make your cow speak.
- In your terminal, type:
cowsay "Hello, I'm a talking cow!"
- Press Enter, and you should see an ASCII cow saying "Hello, I'm a talking cow!"
Step 3: Exploring More Options
cowsay
can do more than just display a cow. It has various options and several other characters.
- To list all available characters, type:
cowsay -l
- To make a different character speak, use the
-f
option followed by the character's name. For example, to use Tux, the Linux penguin, type:cowsay -f tux "Hello from Tux!"
Hope you enjoyed this Egg hunt!