Fun in Terminal

Laxman Naik
2 min readOct 17, 2021

--

Hello everyone!

In this article, we will explore funny commands of Linux.

1. Command: sl

You might be aware of command ‘ls’ the list command, which is used frequently to view the contents of a folder but because of miss-typing sometimes you would result in ‘sl’, how about getting a little fun in the terminal and not “command not found“.

Install sl:

[root@localhost ~]# yum install sl

Output:

[root@localhost ~]# sl
Output of sl command

2. Command: cowsay

cowsay is a program that generates ASCII art pictures of a cow with a message. It can also generate pictures using pre-made images of other animals.

Install cowsay:

[root@localhost ~]# yum install cowsay

Output:

[root@localhost ~]# cowsay I love Linux[root@localhost ~]# cowsay -f dragon I Love Linux
Output of cowsay command

3. Command: rev

rev command in Linux is used to reverse the lines characterwise.

[root@localhost ~]# rev
I Love Linux
Try some funny command in linux
Output of rev command

4. Command: factor

The factor command in Linux is used to print the prime factors of the given numbers, either given from command line or read from standard input.

[root@localhost ~]# factor 25[root@localhost ~]# factor 35[root@localhost ~]# factor 56
Output of factor command

5. Command: yes

yes is a command on Unix and Unix-like operating systems, which outputs an affirmative response, or a user-defined string of text, continuously until killed.

[root@localhost ~]# yes I Love Linux
Output of yes command

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response