Cowsay in Linux – Fun Terminal Tool

Cowsay is a small and fun tool that shows your text in a speech bubble with a cow in the terminal. It is very easy to use and is often used to make the terminal look cool and interesting. You can also use different characters and styles to make your messages more fun while using Linux terminal.

Installation Commands

Update Terminal and install cowsay:

pkg update && pkg upgrade && pkg install cowsay -y

Check installation:

cowsay "Hello"

Install lolcat for color output:

pkg install ruby -y && gem install lolcat

Usage Commands

Display a simple message:

cowsay "Hello World"

Use different character (like tux):

cowsay -f tux "Hello from Linux"

List all available characters:

cowsay -l

Make the cow think:

cowthink "I am thinking..."

Change eye style:

cowsay -e ^^ "Cool eyes"

Change tongue style:

cowsay -T U "Funny cow"

Use random cow:

cowsay -f $(cowsay -l | tr ' ' '\n' | shuf | head -n 1) "Random cow"

Combine with other commands:

echo "Welcome to Termux" | cowsay

Colored Cowsay (Modern Look)

Use cowsay with rainbow colors:

cowsay "Hello World" | lolcat

Random colorful cow:

cowsay -f $(cowsay -l | tr ' ' '\n' | shuf | head -n 1) "Cool Termux" | lolcat

Rainbow thinking cow:

cowthink "Learning Termux is fun" | lolcat

Stylish animated color effect:

lolcat -a -d 2 <<< "$(cowsay 'Stylish Output')"
SHARE THIS POST: