close
The Wayback Machine - https://web.archive.org/web/20250114130902/https://www.geeksforgeeks.org/fun-commands-linux/
Open In App

Fun Commands in Linux

Last Updated : 11 Oct, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Linux isn’t just for coding and administration—it can also be a lot of fun. With a variety of terminal commands, you can add some entertainment to your Linux experience.

Below is a list of some cool and fun commands you can use in Linux to enhance your terminal experience. We’ll also cover how to install and use each one.

1. Cowsay – Talking ASCII Cow

Cowsay is a fun utility that displays a message inside a speech bubble from an ASCII art cow. It is great for light-hearted terminal interactions or simply adding some character to scripts and notifications. You can customize the cow or even replace it with other ASCII characters.

First, we install it using:

sudo apt-get install cowsay

sudo apt-get install cowsayCowsay We use other objects to use -l to list them and -f to use them. -l and -f

2. xcowsay – Graphical Cowsay

If you prefer graphical output, xcowsay displays your message in a speech bubble with a cartoon cow on the desktop screen.

First, we install it using:

sudo apt-get install xcowsay

Then here is the way to use it. xcowsay linux

3. The MATRIX

Use below command to install it

sudo apt-get install matrix 

Once installed, use below command to print.

cmatrix

To display neo style matrix on the terminal. MATRIX

4. Watch Star Wars – Telnet Animation

This is actually an animation which runs when we connect to the server. Watch Star Wars Star Wars - Telnet Animation

5. Yes – Repeating Text Output

The yes command is used to repeatedly output a string until it is stopped manually. It is typically used for testing, but you can have some fun with it by making it say things you love about Linux.

To make it repeatedly output “I love Linux”:

Yes "I love Linux"

Yes

6. Fire – Terminal Fire Animation

Add some excitement to your terminal with a fire animation using aafire. This command creates an ASCII animation of flames.

Use below command to install it

sudo apt install libaa-bin 

Once installed, use below command to print.

aafire

Fire - Terminal Fire Animation7. Get Random Quotes – Fortune

The fortune command displays random quotes, jokes, or sayings in your terminal. It’s perfect for adding a bit of humor or wisdom to your day.Get Random Quotes

8. Reverse – Reverse File Content

The rev command reverses the contents of a file or text input. It can be used for fun or for simple text manipulation tasks.

Reverse File Content

Conclusion

Linux is more than just a powerful operating system; it’s also a playground for those who love exploring unique terminal tricks. The commands listed above not only make your terminal experience more enjoyable but also add a touch of creativity and personalization. From displaying fun messages with cowsay to enjoying the classic Matrix effect with cmatrix, these tools showcase the playful side of Linux while helping you become more comfortable with using the terminal. Give them a try, and you might discover a new favorite command to share with fellow Linux enthusiasts.

Fun Commands in Linux – FAQs

Can these fun Linux commands harm my system?

No, these commands are safe to use and are intended for entertainment or simple terminal customization. However, always use caution with commands that make changes to system settings or files.

Do I need superuser privileges to install these tools?

Yes, you typically need to use sudo to install packages with apt-get. Running commands as a normal user is usually sufficient for most of these tools.

Can I use these tools on other Linux distributions?

Yes, most of these commands are available for various Linux distributions. Use the appropriate package manager for your distribution (e.g., yum for CentOS, dnf for Fedora, or pacman for Arch).

Is there a graphical user interface (GUI) version of these commands?

Some commands, like xcowsay, offer graphical output. Others are strictly command-line based.

Master DevOps and also get 90% Course fee refund on completing 90% course in 90 days! Take the Three 90 Challenge today.

The most sought-after Three 90 challenge has started and this is your chance to upskill and get 90% refund. What more motivation do you need? Start the challenge right away!


Next Article

Similar Reads

three90RightbarBannerImg