20 funny commands from Linux or Linux is fun in the terminal

s2 0

Linux That’s fun! Huh. Okay you don’t believe me Remember, by the end of this article, you have to believe in it Linux is actually a fun box.

20 fun Linux commands

1st command: sl (steam locomotive)

You may be familiar with the ‘ls’ command, the list command often used to view the contents of a folder, but due to a typo, it sometimes resulted in’sl‘how about some fun in the terminal and not “command not found“.

sl. to install

$ sudo apt install sl   [On Debian/Ubuntu & Mint]
$ sudo yum install sl   [On CentOS/RHEL 7]
$ sudo dnf install sl   [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S sl     [On Arch Linux]
$ sudo pkg_add -v sl    [On FreeBSD]
output
[email protected]:~# sl
sl funny command
sl command

This command also works if you ‘LS‘ and not ‘ls‘.

2nd command: telnet

no! no!! it’s not as complex as it seems. You know your way around telnet. Telnet is a text-based bidirectional network protocol over a network. There is nothing to install here. What you should have is a Linux box and working internet.

[email protected]:~# telnet towel.blinkenlights.nl   [No longer working]
telnet command
telnet command

3rd command: fortune

what about your accidental wealth, sometimes funny in the terminal.

Install assets

$ sudo apt install fortune   [On Debian/Ubuntu & Mint]
$ sudo yum install fortune   [On CentOS/RHEL 7]
$ sudo dnf install fortune   [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S fortune     [On Arch Linux]
$ sudo pkg_add -v fortune    [On FreeBSD]
[email protected]:~# fortune

You're not my type.  For that matter, you're not even my species!!!
Future looks spotty.  You will spill soup in the late evening.
You worry too much about your job.  Stop it.  You are not paid enough to worry.
Your love life will be... interesting.

4th command: rev (backward)

It turns back any string given to it is not funny.

[email protected]:~# rev

123abc 
cba321 

xuniL eb ot nrob
born to be Linux

5th command: Factor

Time for some mathematics, this command prints all possible factors of a given number.

[email protected]:~# factor 5

5 
5: 5 

12 
12: 2 2 3 

1001 
1001: 7 11 13 

5442134 
5442134: 2 2721067

6. Command: Script

OK, this is not a command or script, but it’s nice.

[email protected]:~# for i in {1..12}; do for j in $(seq 1 $i); do echo -ne $i×$j=$((i*j))t;done; echo;done 

1×1=1	
2×1=2	2×2=4	
3×1=3	3×2=6	3×3=9	
4×1=4	4×2=8	4×3=12	4×4=16	
5×1=5	5×2=10	5×3=15	5×4=20	5×5=25	
6×1=6	6×2=12	6×3=18	6×4=24	6×5=30	6×6=36	
7×1=7	7×2=14	7×3=21	7×4=28	7×5=35	7×6=42	7×7=49	
8×1=8	8×2=16	8×3=24	8×4=32	8×5=40	8×6=48	8×7=56	8×8=64	
9×1=9	9×2=18	9×3=27	9×4=36	9×5=45	9×6=54	9×7=63	9×8=72	9×9=81	
10×1=10	10×2=20	10×3=30	10×4=40	10×5=50	10×6=60	10×7=70	10×8=80	10×9=90	10×10=100	
11×1=11	11×2=22	11×3=33	11×4=44	11×5=55	11×6=66	11×7=77	11×8=88	11×9=99	11×10=110	11×11=121	
12×1=12	12×2=24	12×3=36	12×4=48	12×5=60	12×6=72	12×7=84	12×8=96	12×9=108	12×10=120	12×11=132	12×12=144

7. Command: Cowsay

A ASCII Cow in the terminal will say what you want.

Install Cowsay

$ sudo apt install cowsay   [On Debian/Ubuntu & Mint]
$ sudo yum install cowsay   [On CentOS/RHEL 7]
$ sudo dnf install cowsay   [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S cowsay     [On Arch Linux]
$ sudo pkg_add -v cowsay    [On FreeBSD]
output
[email protected]:~# cowsay I Love nix 

 ____________
< I Love nix >
 ------------
           ^__^
           (oo)_______
            (__)       )/
                ||----w |
                ||     ||

How about pipeline ‘Good luck order‘, described above with Cowsay?

[email protected]:~# fortune | cowsay 

 _________________________________________
/ Q: How many Oregonians does it take to  
| screw in a light bulb? A: Three. One to |
| screw in the light bulb and two to fend |
| off all those                           |
|                                         |
| Californians trying to share the        |
 experience.                             /
 -----------------------------------------
           ^__^
           (oo)_______
            (__)       )/
                ||----w |
                ||     ||

note: ‘|‘is called a pipeline instruction and is used when the output of one instruction must be the input of another instruction. In the example above, the output of the ‘wealth‘Command acts as input of the’Cow white‘Command. This pipeline instruction is widely used in scripting and programming.

xcowsay is a graphical program that reacts in a similar way to Cow white but in a graphical way, hence it is x by cowsay.

$ sudo apt install xcowsay   [On Debian/Ubuntu & Mint]
$ sudo yum install xcowsay   [On CentOS/RHEL 7]
$ sudo dnf install xcowsay   [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S xcowsay     [On Arch Linux]
$ sudo pkg_add -v xcowsay    [On FreeBSD]
output
[email protected]:~# xcowsay I Love nix
Install xcowsay
xcowsay command

Cow thinking is another command, just run “cowthink Linux is sooo funny” and see the difference in the output from cowsay and cowthink.

output
[email protected]:~# cowthink ....Linux is sooo funny
 _________________________
( ....Linux is sooo funny )
 -------------------------
        o   ^__^
         o  (oo)_______
            (__)       )/
                ||----w |
                ||     ||

8th order: yes

It’s fun, but also useful, especially in scripts and for System administrators where an automated predefined response can be passed to the terminal or generated.

[email protected]:~# yes I Love Linux

I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux
I Love Linux

note: (Until you interrupt, ie Ctrl + C).

9th order: toilet

What? Are you kidding, huh no! Definitely not, but this command name itself is surely too funny, and I don’t know where this command got its name from.

Install toilet

$ sudo apt install toilet  [On Debian/Ubuntu & Mint]
$ sudo yum install toilet  [On CentOS/RHEL 7]
$ sudo dnf install toilet  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S toilet    [On Arch Linux]
$ sudo pkg_add -v toilet   [On FreeBSD]
output
[email protected]:~# toilet tecmint 

mmmmmmm                        "             m                               
   #     mmm    mmm   mmmmm  mmm    m mm   mm#mm          mmm    mmm   mmmmm 
   #    #"  #  #"  "  # # #    #    #"  #    #           #"  "  #" "#  # # # 
   #    #""""  #      # # #    #    #   #    #           #      #   #  # # # 
   #    "#mm"  "#mm"  # # #  mm#mm  #   #    "mm    #    "#mm"  "#m#"  # # #

It even offers some sort of color and font style.

[email protected]:~# toilet -f mono12 -F metal Tecmint.com
Install toilet command
Toilet order

note: Figlet is another command that more or less creates such an effect in the terminal.

10. Command: cmatrix

You may have seen the Hollywood movie ‘matrix‘and would be fascinated by the power Neo was provided to see anything and everything in the matrix or you could think of an animation that looks like this hacker‘s desktop.

Install cmatrix

$ sudo apt install cmatrix  [On Debian/Ubuntu & Mint]
$ sudo yum install cmatrix  [On CentOS/RHEL 7]
$ sudo dnf install cmatrix  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S cmatrix    [On Arch Linux]
$ sudo pkg_add -v cmatrix   [On FreeBSD]
output
[email protected]:~# cmatrix
cmatrix command
cmatrix command

11. Command: one

OK, so you think the Linux mouse pointer is the same silly black and white pointer, if no animation lies then I’m afraid you might be wrong. “Well“Is a package that contains a”Jerry“With your cursor and moves with your cursor.

Install one

$ sudo apt install oneko  [On Debian/Ubuntu & Mint]
$ sudo yum install oneko  [On CentOS/RHEL 7]
$ sudo dnf install oneko  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S oneko    [On Arch Linux]
$ sudo pkg_add -v oneko   [On FreeBSD]
output
[email protected]:~# oneko
install one
an order

note: As soon as you close the terminal from which Well was running jerry disappears and does not start at startup either. You can add the application to start it up and keep enjoying it.

12. Fork bomb

This is very bad code. Do this at own risk. This is actually a fork bomb that multiplies itself exponentially until all system resources are consumed and the system hangs.

To verify the performance of this command, try once, but at your own risk, close and save all other programs and files before: a Fork bomb.

[email protected]:~# :(){ :|:& }:

13. Command: during

The lower “while” Command is a script that will give you a colored date and file until you interrupt (Ctrl + c). Just copy and paste the following code into the terminal.

[email protected]:~# while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done
Linux at the command
Linux at the command

note: The above script, if modified with the following command, will give similar output, but with one small difference, check it in your terminal.

[email protected]:~# while true; do clear; echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done

14. Command: espeak

Just turn the knob on your multimedia speaker to full before pasting this command into your terminal and let us know how you felt hearing the voice of God.

Install Espeak

$ sudo apt install espeak  [On Debian/Ubuntu & Mint]
$ sudo yum install espeak  [On CentOS/RHEL 7]
$ sudo dnf install espeak  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S espeak    [On Arch Linux]
$ sudo pkg_add -v espeak   [On FreeBSD]
output
[email protected]:~# espeak "Tecmint is a very good website dedicated to Foss Community"

15. Command: aafire

How about a fire in your terminal. Just type “aafire“In the terminal, without the quotes, and see the magic. Press any key to pause the program.

install aafire

$ sudo apt install libaa-bin  [On Debian/Ubuntu & Mint]
$ sudo yum install aalib  [On CentOS/RHEL 7]
$ sudo dnf install aalib  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S aalib    [On Arch Linux]
$ sudo pkg_add -v aalib   [On FreeBSD]
output
[email protected]:~# aafire
install aafire
a fire command

16. Command: bb

First install the command and then type “bb“In the terminal and see what happens.

$ sudo apt install bb  [On Debian/Ubuntu & Mint]
$ sudo yum install bb  [On CentOS/RHEL 7]
$ sudo dnf install bb  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S bb    [On Arch Linux]
$ sudo pkg_add -v bb   [On FreeBSD]
[email protected]:~# bb
bb command
bb command

17. Command: curl

Wouldn’t you feel great if you can update yours Twitter status from the command line in front of your friend and they seem impressed? Okay just replace it Username, Password, and your status message with you Username, Password, and “your status message“.

[email protected]:~# curl -u YourUsername:YourPassword -d status="Your status message" https://twitter.com/statuses/update.xml

18. ASCIIquarium

What will it be like to get one Aquarium in the terminal.

[email protected]:~# apt-get install libcurses-perl
[email protected]:~# cd /tmp 
[email protected]:~# wget https://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
[email protected]:~# tar -zxvf Term-Animation-2.4.tar.gz
[email protected]:~# cd Term-Animation-2.4/
[email protected]:~# perl Makefile.PL &&  make &&   make test
[email protected]:~# make install
Install ASCIIquarium

Download and install now ASCIIquarium.

[email protected]:~# cd /tmp
[email protected]:~# wget https://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
[email protected]:~# tar -zxvf asciiquarium.tar.gz
[email protected]:~# cd asciiquarium_1.1/
[email protected]:~# cp asciiquarium /usr/local/bin
[email protected]:~# chmod 0755 /usr/local/bin/asciiquarium

And finally run “asciiquarium” or “/ usr / local / bin / asciiquarium“In the terminal without quotes and be part of the magic that unfolds before your eyes.

[email protected]:~# asciiquarium
Install the aquarium
Aquarium command

19. Command: funny man pages

Install the fun man pages first, then run man pages for the following commands.

$ sudo apt install funny-manpages  [On Debian/Ubuntu & Mint]
$ sudo yum install funny-manpages  [On CentOS/RHEL 7]
$ sudo dnf install funny-manpages  [On CentOS/RHEL 8 & Fedora]
$ sudo pacman -S funny-manpages    [On Arch Linux]
$ sudo pkg_add -v funny-manpages   [On FreeBSD]

Some of them can be 18+, run at your own risk, they’re all too funny.

baby
celibacy
condom
date
echo
flame
flog
gong
grope, egrope, fgrope 
party 
rescrog 
rm
rtfm
tm
uubp
woman (undocumented)
xkill 
xlart 
sex 
strfry
[email protected]:~# man baby

20. Linux optimizations

It’s time for you to have a one-liner tweaks.

[email protected]:~# world

bash: world: not found
[email protected]:~# touch girls boo** 

touch: cannot touch `girls boo**': Permission denied
[email protected]:~# nice man woman

No manual entry for woman
[email protected]:~# ^How did the sex change operation go?^ 

bash: :s^How did the sex change operation go?^ : substitution failed
[email protected]:~# %blow 

bash: fg: %blow: no such job
[email protected]:~# make love 

make: *** No rule to make target `love'.  Stop.
$ [ whereis my brain?                    
sh: 2: [: missing ]
% man: why did you get a divorce? 
man:: Too many arguments.
% !:say, what is saccharine? 
Bad substitute.
[email protected]:/srv$ (- 
bash: (-: command not found

Linux is sexy: who | grep -i blond | Date; cd ~; unzip; touch; Stripes; Finger; assemble; gasp; Yes sir; Operating time; Vast amount; sleep (If you know what I mean)

There are a few others but they will not work on all systems and are therefore not covered in this article. Some of them are men dog, filter, banner, Etc.

[ You might also like: 6 Interesting Funny Commands of Linux (Fun in Terminal) – Part II ]

Have fun, you can say thank you to me later 🙂 Yes, your comment is very much appreciated which encourages us to write more. Tell us which command you liked the most. Stay tuned I’ll get back to you soon with another article worth reading.