Funny Linux Commands

Nitin Taneja
4 min readSep 24, 2021
Let’s have some fun in the terminal

1. Command: sl (Steam Locomotive)

You might be aware about the command ‘ls’ which we all use to list out the files or directories in Linux. But sometimes we do make a mistakes by typing sl instead of ls. After that we see the result command not found. How about getting some funny output instead of getting command not found. Excited!

Install sl

$ 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]

(You can use anyone from above command to install sl)

Command to execute :

sl

This command works even when you type ‘LS‘ and not ‘ls‘.

2. Command: fortune

what about if you get your random fortune, sometimes funny in linux terminal.

Install fortune

$ 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]

3. Command: rev (Reverse)

It reverse every string. Very Interesting command!!

4. Command: factor

Let’s do some mathematics. This command gives the factor of given number.

5. Command: Cowsay

This command will give you very funny output. See Below!

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]

Options in cowsay commands

Command : cowsay -l

How about pipelining ‘fortune command‘, described above with cowsay?

7. Command: yes

8. Command: Cowthink

Similar to cowsay but the only difference between these two commands is trivial, please notice the difference, cowsay is what cow says and this is what cow thinks:

9. Command: Figlet

Install figlet

$ sudo apt install figlet  [On Debian/Ubuntu & Mint]
$ sudo yum install figlet [On CentOS/RHEL 7]
$ sudo dnf install figlet [On CentOS/RHEL 8 & Fedora]

10. Command: banner

Install figlet

$ sudo apt install banner [On Debian/Ubuntu & Mint]
$ sudo yum install banner [On CentOS/RHEL 7]
$ sudo dnf install banner [On CentOS/RHEL 8 & Fedora]

Hope! this article is helpful to you to know about various zenity commands…

--

--

Nitin Taneja

Cloud & DevOps Enthusiast… Completed B.tech in Cloud Technology and Information Security.