Linux Fun Commands

yash
3 min readOct 17, 2021

--

1. Command: sl (Steam Locomotive):-

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 package

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

2. Command: rev (Reverse):-

It reverses every string given to it, is not it funny.

3. Command: factor

Time for some Mathematics, this command output all the possible factors of a given number.

4. Command: yes

It is funny but useful as well, especially in scripts and for System Administrators where an automated predefined response can be passed to the terminal or generated.

5. Command: Cowsay

An ASCII cow in the terminal will say whatever 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]

6.The figlet command :-

This command makes turns ordinary terminal text into big fancy letters.

7. Command: telnet

No! No!! it is not as much complex as it seems. You would be familiar with telnet. Telnet is a text-oriented bidirectional network protocol over a network. Here is nothing to be installed. What you should have is a Linux box and a working Internet.

root@tecmint:~# telnet towel.blinkenlights.nl   [No longer working]

8. Fork Bomb

This is a very nasty piece of code. Run this at your own risk. This actually is a fork bomb which exponentially multiplies itself till all the system resource is utilized and the system hangs.

To check the power of this command you should try it once, but all at your own risk, close and save all other programs and files before running a fork bomb.

ro ot@tecmint:~# :(){ :|:& }:

Thank you !!

--

--

yash
yash

Written by yash

0 Followers

learner in computer science , computer vision , machine learning , MLOPs world

No responses yet