Hello, fellow Linux enthusiasts! Today, we're taking a fun detour from our usual Linux command lines tutorial to look at some amusing Linux commands. Yes, you heard that right! Even the Linux terminal has a sense of humor. So, let's dive into the lighter side of Linux and discover some funny Linux commands that can bring a smile to your face.

Let's Chat with the Classic Cowsay 🐮

First up is the classic Cowsay command. This command makes a cow appear in your terminal, saying whatever text you want it to say. Here's how you do that:

Making a Cow Talk with the Cowsay Command

To use the Cowsay command, you first need to make sure it's installed on your system. You can do this by typing 'sudo apt-get install cowsay' in your terminal. Once it's installed, you can make your cow say anything you want. For example, if you want your cow to say 'Hello, World!', you would type the following command:

cowsay 'Hello, World!'

Once you hit enter, a cow will appear in your terminal, saying 'Hello, World!'. You can replace 'Hello, World!' with any text you want. Have fun experimenting with different messages and see what your cow has to say!

$ sudo apt-get install cowsay

$ cowsay "Hello, DG Micro!"

You'll see a cute ASCII cow saying "Hello, DG Micro!" in your terminal. Isn't that fun?

Unveiling Your Linux Fortune 🥠

Next up, we have the Fortune command. This command gives you a random, often amusing, "fortune." Here's how to use it:

Using the Fortune Command

First, you need to ensure that the 'fortune' command is installed on your Linux system. If not, you can install it using the package manager for your distribution. For example, on Ubuntu, you would use the following command: 'sudo apt install fortune'. Once installed, you can simply type 'fortune' into the terminal and press enter. Here's an example:


Running this command will display a random (often humorous) quote or saying. It's a fun way to add a little levity to your command line work!

$ sudo apt-get install fortune

$ fortune

Prepare to chuckle or ponder as you read your fortune.

Laughing at Typos with the Infamous Sl 🚂

Ever typed 'ls' in haste and ended up typing 'sl' instead? The Sl command is here to poke fun at that common typo. Instead of listing files, it shows an animation of a steam locomotive! Here's how to install and run it:

Installing and Running the 'sl' Command

Before you can enjoy the fun of the 'sl' command, you'll first need to install it. Don't worry, it's a piece of cake! Just open your terminal and type the following command:

sudo apt-get install sl

Now that you've installed it, all you need to do is type 'sl' and hit enter. Watch as a steam locomotive chugs across your terminal screen. Remember, it's not a bug, it's a feature! So next time you mistype 'ls', you'll be greeted with a bit of fun!

$ sudo apt-get install sl

$ sl

Now, every time you make a typo, you'll be greeted by a steam locomotive. Talk about a fun way to improve your typing skills!

Give Voice to Your Terminal with Espeak 🗣️

Ever wished your terminal could talk? Well, with the Espeak command, it can! This command turns your terminal into a speaking one. Here's how to use it:

Using the Espeak Command

To use the Espeak command, you simply need to type 'espeak' followed by your desired text in quotes. For instance, if you want your terminal to say 'Hello, World!', you would type:

espeak 'Hello, World!'

After pressing enter, your terminal will audibly say 'Hello, World!'. Feel free to replace 'Hello, World!' with any text of your choice. Just remember to keep your text within the quotes. Now go ahead and have some fun with your talking terminal!

$ sudo apt-get install espeak

$ espeak "Hello, DG Micro!"

Your terminal will now audibly greet you. A talking terminal, who would've thought?

Celebrate with a Terminal Fireworks Show 🎆

Lastly, we have the Fireworks command, which creates an ASCII fireworks display in your terminal. It's a fun way to celebrate a successful project or just to add some sparkle to your day. Here's how to use it:

The Fireworks Command in Action

The Fireworks command is actually a hidden gem within the telnet command. It's not a standalone command, but rather a fun little easter egg that you can access via telnet. To start the fireworks display, you simply need to type the following into your terminal:

telnet towel.blinkenlights.nl

After you hit enter, sit back and enjoy the show! It's a fun and quirky way to celebrate your accomplishments, or just to bring a little joy to your day. Remember, programming is not just about writing code and solving problems, it's also about having fun and exploring the unexpected corners of the digital world.

$ sudo apt-get install libcaca

$ cacafire

Prepare to be dazzled by the fireworks display in your terminal!

These are just a few amusing Linux commands that can brighten up your day. They may not be essential for Linux sysadmin tasks or advanced Linux operations, but they sure add an element of fun to the otherwise serious business of Linux command lines. Remember, it's not all work and no play in the world of Linux!

Amusing Linux Commands Quiz

Test your knowledge about some amusing Linux commands!

Learn more about 🐧 Amusing Linux Commands Quiz 🐧 or discover other quizzes.

Amelia Harper
Linux learning, Tech blogging, Community engagement

Amelia Harper is a Linux beginner with a passion for learning. She documents her journey into the Linux world on DG Micro. Amelia loves to share her experiences and learn from others in the community.