• Rutvik Hajare

Linux Commands to Have Some Fun in the Terminal

Updated: May 27, 2020

So, do you think Linux terminal is all work and no fun? then you are totally wrong.These funny Linux commands will prove you wrong.

The Linux terminal is the place to get serious work done. We have plenty of useful linux command tips and tricks to help you with that.

However, you will be surprised to know that there are tons of terminal based games and ASCII games that you can play in the terminal.

And, in this article, I’m going to explore some interesting, some funny and some ridiculous commands that you can type into the terminal on Linux and have fun!

Have some fun in Linux terminal with these commands

1. Run a train in the terminal

You may be surprised after knowing that, the sl command allows you to run a train in your terminal.

Here’s how to install the command:

 sudo apt install sl

Once done, you can simply type in the following in the terminal to get started:


We are not done yet! Apparently, you can fly your locomotive. Just add the option -F.

sl -F

This should make the locomotive get wings to fly off from the terminal window!

2. Add the Matrix effect to your Linux terminal

The green text falling down on the terminal became an identity of Matrix.

You can have this Matrix digital rain on your Linux box as well! You just need to install cmatrix and type it in the terminal.

3. Let the terminal speak for you

To try out this command, make sure you have turned on your speakers. eSpeak is a fun command that gives your terminal a voice. Yes, you heard that right!

Install the package first:

sudo apt install espeak

Next, you need to simply type in the command along with a text that you want to listen as audio:

espeak "Type what your computer says"

Whatever you place in the double quotes, your computer is obligated to say! It’s like echo command in Linux. But instead of printing, it speaks.

Installing cmatrix on Debian/Ubuntu Linux:

sudo apt install cmatrix

Now, all you have to do is type the following to get the matrix screen on terminal:


Press Ctrl+C to stop it.

4. Calculate factor

Time for some Mathematics, factor command will let you calculate all the possible factors of a given number.

factor 9

5. Let there be fire

Now you are going to start a fire in your terminal!

To get it installed, here’s what you have to type:

sudo apt install libaa-bin

Once done start a fire in your terminal by entering:


Press Ctrl+C to stop it.

6. Fortune Cookie Command

Want to know your fortune? Don't to worry, you just need to type “fortune” on your terminal and press enter. The terminal will display a random sentence just like you usually get in fortune cookies.

Install it with:

sudo apt install fortune

Once done, simply type in the command below to know your fortune:


Now this is one of the commands here that you could actually use. You can use it as message of the day so that in a multi-user environment, all the users will see a random fortune cookie when they login.

7. Pet lover? This is for you

Oneko is a little fun command that will change your regular cursor into a mouse and creates a curious little cat who will chase your cursor once you move it. It’s not limited to just the terminal. You can keep on working while the cat chases the cursor.

Now, that’s something fun to do specially if you have kids at home.

Install Oneko with this command:

sudo apt install oneko

Run it with this command:


In case you want a dog instead of a cat, type:

oneko -dog

There are a few more types of cats available. You can get that information by using oneko –help. To stop it, use Ctrl+C.

8. Little brother is watching you

Xeyes is a tiny gui program that let the user draws a pair of ever watching eyes! It will follow your mouse cursor constantly. Run the command and see it yourself!

You can install it using this command:

sudo apt install xeyes

And then use it with this:


Press Ctrl+C to stop it.

9.Reverse a String

Lets reverse a string. 'rev' command let you reverse every string given to it, is not it funny.


10. Toilet (but it has nothing to do with a washroom)

This sounds weird, yes. But, it’s just a command that transforms a text into large ASCII characters.

Install toilet with this command:

sudo apt install toilet

Once done, you just need to type in:

toilet sample text you want

I don’t know why this little program is called toilet.

11. What does the fox cow say?

Cowsay is a command that displays a cow using ASCII characters in the terminal. And by using this command you can instruct the cow to say anything you want.

Install cowsay:

sudo apt install cowsay

Once you have it installed, you just need to type in:

cowsay "your text"

Whatever you place in the double quotes, your cow is obligated to say! I have seen a few sysadmins using it to display the message of the day. Maybe you can do the same. You may even combine it with fortune command.

12. Banner Command

The banner command works just like the toilet command but it is limited to print only 10 characters at most.

You can install banner command like this:

sudo apt install sysvbanner

Then use it in the following way:

banner "Welcome"

Replace content in the double quotes and you shall have your desired text displayed.

13. Yes command

The “yes” command helps you to loop an automated response until you terminate the command. This command will print the exact same thing indefinitely. If you want to produce huge amounts of junk text fast, then this command will work like a charm.

You may also use it to provide a yes to a command (if it prompts for it). For example, the apt upgrade command asks for your confirmation, you can use it like this:


You don’t need to install any package for it. Yes command is already available.

Terminate the yes command loop, simply press CTRL + C.

14. Get a new identity, well, sort of

Want to generate a random fake identity? I give you the command “rig”. Once you place this in the terminal, it will generate a fake identity.

Install rig with this command:

sudo apt install rig

Then simply type this:


It may be used in scripts or web-apps that displays random information but I haven’t done anything of that sort on my own.

15. Command: bb

First install this command.Then, type “bb” in terminal and see what happens.

 apt-get insatll bb

Then, type “bb” in terminal and see what happens.


19,785 views0 comments

Recent Posts

See All

Create Your Own Disposable Email Address with Gmail

A temporary mail addresses are very useful when you don't want to share your real email address with a website. The source code generated by Labnol. How temporary mail addresses work- By just mask you


Doceeo gives the ideas, tricks, tips and tutorials about the technology.
get info about the OS.
@2020 all right are reserved by Doceeo


  • Facebook
  • Twitter
  • Pinterest

Follow on Reddit