HomeLinux24 Hilarious Linux Instructions That Will Make You Chuckle

24 Hilarious Linux Instructions That Will Make You Chuckle


Linux has a wealthy assortment of instructions, and whereas lots of them are highly effective and helpful for numerous duties, there are additionally some humorous and kooky instructions that you would be able to check out for amusement.

1. sl Command (Steam Locomotive)

You may pay attention to the command ls command, which is used ceaselessly to view the contents of a listing however due to miss-typing typically you’ll end in ‘sl‘.

The sl command is to playfully simulate a prepare shifting throughout your terminal while you unintentionally kind “sl” as a substitute of “ls” (a standard mistype).

Set up sl Command

$ sudo apt set up sl         [On Debian, Ubuntu and Mint]
$ sudo yum set up sl         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/sl  [On Gentoo Linux]
$ sudo apk add sl             [On Alpine Linux]
$ sudo pacman -S sl           [On Arch Linux]
$ sudo zypper set up sl      [On OpenSUSE]    

After set up, you possibly can attempt working the sl command by merely typing.

$ sl
sl Command in Linux
sl Command in Linux

2. telnet Command

The telnet command is a text-oriented bidirectional community protocol that lets you hook up with distant methods and work together with them utilizing a text-based interface.

Set up telnet Command

$ sudo apt set up telnet         [On Debian, Ubuntu and Mint]
$ sudo yum set up telnet         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/telnet  [On Gentoo Linux]
$ sudo apk add telnet             [On Alpine Linux]
$ sudo pacman -S telnet           [On Arch Linux]
$ sudo zypper set up telnet      [On OpenSUSE]    

For instance, to ascertain a connection to the IP deal with of the distant system on port 22, which is usually used for SSH (Safe Shell) connections.

$ telnet 192.168.0.135 22
Check SSH Port is Open
Test SSH Port is Open

3. fortune Command

The fortune command is a enjoyable command that’s used to show a random quote, a witty saying, or a fortune message.

Set up fortune Command

$ sudo apt set up fortune         [On Debian, Ubuntu and Mint]
$ sudo yum set up fortune         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/fortune  [On Gentoo Linux]
$ sudo apk add fortune             [On Alpine Linux]
$ sudo pacman -S fortune           [On Arch Linux]
$ sudo zypper set up fortune      [On OpenSUSE]    

After set up, you possibly can attempt working the fortune command by merely typing.

$ fortune
Show Quotes in Command Line
Present Quotes in Command Line

4. rev Command

The rev command is used to reverse the order of characters in every line of a given enter. It reads the enter from both normal enter or from recordsdata and outputs the reversed traces.

To reverse the characters in a file, use the next command.

$ rev tecmint.txt
Reverse Words in Linux
Reverse Phrases in Linux

5. issue Command

The issue command is used to factorize a given integer into its prime components. It calculates the prime components of the desired quantity and shows them on the usual output.

$ issue 5
Calculates Prime Factors of Number
Calculates Prime Components of Quantity

6. Nested Loop in Bash

This isn’t a command, however a nested loop in Bash that prints a multiplication desk from 1 to 12. It makes use of two variables, i and j, to iterate by means of the numbers and calculates their product.

$ for i in {1..12}; do for j in $(seq 1 $i); do echo -ne $i×$j=$((i*j))t;executed; echo;executed

Right here is a proof of the command:

for i in {1..12}; do               # Outer loop iterating from 1 to 12
    for j in $(seq 1 $i); do       # Internal loop iterating from 1 to the present outer loop worth
        echo -ne "$i×$j=$((i*j))t";    # Print the multiplication expression and outcome
    executed
    echo;                         # Transfer to the subsequent line after every inside loop
executed

While you run this command within the terminal, it should generate the next output.

Prints Multiplication Table in Linux
Prints Multiplication Desk in Linux

7. cowsay Command

The cowsay command is used to generate an ASCII artwork illustration of a cow or different animals with speech or thought bubbles containing a customizable message.

Set up cowsay Command

$ sudo apt set up cowsay         [On Debian, Ubuntu and Mint]
$ sudo yum set up cowsay         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/cowsay  [On Gentoo Linux]
$ sudo apk add cowsay             [On Alpine Linux]
$ sudo pacman -S cowsay           [On Arch Linux]
$ sudo zypper set up cowsay      [On OpenSUSE]    

After set up, you possibly can attempt working the cowsay command by merely typing.

$ cowsay I Love Tecmint.com
$ cowsay I Love Linux
Generate ASCII Art of Text
Generate ASCII Artwork of Textual content

To mix the fortune with the cowsay command to show a random fortune message utilizing a pipe (|) to move the output of 1 command to be the enter of one other command.

Within the under instance, the output of the ‘fortune‘ command acts as an enter of the ‘cowsay‘ command.

$ fortune | cowsay 
Display Random Fortune Message
Show Random Fortune Message

xcowsay is a graphical program that response just like cowsay however in a graphical method, that generates an animated speech bubble with a customizable message, normally that includes a cow or different characters, on the desktop.

Set up xcowsay Command

$ sudo apt set up xcowsay         [On Debian, Ubuntu and Mint]
$ sudo yum set up xcowsay         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/xcowsay  [On Gentoo Linux]
$ sudo apk add xcowsay             [On Alpine Linux]
$ sudo pacman -S xcowsay           [On Arch Linux]
$ sudo zypper set up xcowsay      [On OpenSUSE]    

As soon as xcowsay is put in, you possibly can launch it by working:

$ xcowsay I Love Tecmint.com
Show Animated ASCII Art in Linux
Present Animated ASCII Artwork on Linux

8. sure Command

The sure command prints a steady stream of the desired string or textual content repeatedly till terminated, which is usually utilized in scripts or command-line operations that require automated or repeated enter of a selected worth.

$ sure I Love Tecmint.com
Prints Continuous Stream of Text
Prints Steady Stream of Textual content

9. rest room Command

The rest room command generates visually interesting ASCII artwork text-based banners or massive letters utilizing numerous fonts within the terminal.

Set up rest room Command

$ sudo apt set up rest room         [On Debian, Ubuntu and Mint]
$ sudo yum set up rest room         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/rest room  [On Gentoo Linux]
$ sudo apk add rest room             [On Alpine Linux]
$ sudo pacman -S rest room           [On Arch Linux]
$ sudo zypper set up rest room      [On OpenSUSE]    

As soon as the rest room is put in, you run the command with the textual content you wish to convert into an ASCII banner.

$ rest room TecMint.com 
Generate Text Banner in Linux
Generate Textual content Banner in Linux

If you wish to print the banner in a big font, you possibly can run:

$ rest room -f huge TecMint.com
Print Large Text Banner in Linux
Print Massive Textual content Banner on Linux

10. cmatrix Command

You might need seen the Hollywood film ‘Matrix‘ and can be fascinated with the facility, Neo was supplied with, to see something and every part within the Matrix otherwise you may consider an animation that appears like Matrix’s desktop.

Then you need to use a cmatrix command that shows an animated matrix-like rain of textual content characters in your terminal, just like the “Matrix” film.

Set up cmatrix Command

$ sudo apt set up cmatrix         [On Debian, Ubuntu and Mint]
$ sudo yum set up cmatrix         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/cmatrix  [On Gentoo Linux]
$ sudo apk add cmatrix             [On Alpine Linux]
$ sudo pacman -S cmatrix           [On Arch Linux]
$ sudo zypper set up cmatrix      [On OpenSUSE]    

As soon as cmatrix is put in, you possibly can run the command that shows a stuffed with cascading inexperienced characters resembling the falling code from the “Matrix” film.

$ cmatrix
Show Animated Matrix Like Text in Linux
Present Animated Matrix Like Textual content in Linux

11. oneko Command

OK, so that you consider that the mouse pointer of Linux is similar foolish black/white pointer the place no animation lies then I worry you might be incorrect.

The “oneko” is a package deal that can connect a “Jerry” along with your mouse pointer and strikes alongside along with your pointer.

Set up oneko Command

$ sudo apt set up oneko         [On Debian, Ubuntu and Mint]
$ sudo yum set up oneko         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/oneko  [On Gentoo Linux]
$ sudo apk add oneko             [On Alpine Linux]
$ sudo pacman -S oneko           [On Arch Linux]
$ sudo zypper set up oneko      [On OpenSUSE]    

As soon as oneko is put in, you run the command to see a small animated cat in your display.

$ oneko
Show Animated Mouse Cat in Linux
Present Animated Mouse Cat on Linux

When you shut the terminal from which oneko was run, Jerry will disappear, nor will begin at start-up. You may add the appliance to start out up and proceed having fun with.

12. Fork Bomb

A fork bomb is a kind of malicious code or command that may trigger a denial-of-service (DoS) situation by quickly and exponentially creating baby processes, which exploits the “fork” system name within the working system.

It might probably additionally trigger extreme disruption, lack of information, or harm to the system, which could make you unresponsive, and also you may must reboot the machine to regain management.

To verify the facility of the fork command you need to attempt it as soon as, however all at your individual danger, shut and save all different applications and recordsdata earlier than working a fork bomb.

$ :(): & ;:

Let’s break down how this fork bomb works:

  • :(){ ... } – This defines a operate named ":" (colon) with none arguments.
  • :|: – This calls the operate recursively by piping its output to a different occasion of the operate.
  • & – This places the command within the background, permitting it to run concurrently.
  • ;: – This executes the operate once more after the preliminary invocation, inflicting it to proceed indefinitely.

13. whereas Command

The next whereas command is a bash script that gives you with a coloured date and time in a stylized ASCII artwork format utilizing the rest room. It makes use of a whereas loop to repeatedly execute the instructions and features a 1-second delay between every iteration.

$ whereas true; do echo "$(date '+%D %T' | rest room -f time period -F border --gay)"; sleep 1; executed

Right here’s a proof of the command:

whereas true; do                                   # Begin an infinite loop
    echo "$(date '+%D %T' | rest room -f time period -F border --gay)";   # Print the formatted date and time utilizing rest room
    sleep 1;                                    # Delay for 1 second
executed
Prints Current Date and Time in Linux
Prints Present Date and Time in Linux

The above script when modified with the next command, will give comparable output however with slightly distinction, verify it in your terminal.

$ whereas true; do clear; echo "$(date '+%D %T' | rest room -f time period -F border --gay)"; sleep 1; executed

14. espeak Command

The espeak is a text-to-speech (TTS) synthesis command that converts textual content enter into spoken phrases in numerous languages and voices.

Set up espeak Command

$ sudo apt set up espeak         [On Debian, Ubuntu and Mint]
$ sudo yum set up espeak         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/espeak  [On Gentoo Linux]
$ sudo apk add espeak             [On Alpine Linux]
$ sudo pacman -S espeak           [On Arch Linux]
$ sudo zypper set up espeak      [On OpenSUSE]    

As soon as espeak is put in, you run the command with the textual content you wish to be spoken.

$ espeak "I Love TecMint.com"

15. aafire Command

The aafire is a enjoyable command that shows visually interesting ASCII artwork animation of a fireplace impact within the terminal utilizing ASCII characters.

Set up aafire Command

$ sudo apt set up libaa-bin     [On Debian, Ubuntu and Mint]
$ sudo yum set up aalib         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/aalib  [On Gentoo Linux]
$ sudo apk add aalib             [On Alpine Linux]
$ sudo pacman -S aalib           [On Arch Linux]
$ sudo zypper set up aalib      [On OpenSUSE]    

As soon as aafire is put in, you run the command to see a fireplace animation in your terminal.

$ aafire
Show Fire in Linux
Present Hearth in Linux

16. bb Command

The bb is an easy command-line ASCII artwork demo that shows an animated ASCII artwork illustration of a bouncing ball on the terminal display.

Set up bb Command

$ sudo apt set up bb     [On Debian, Ubuntu and Mint]
$ sudo yum set up bb         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/bb  [On Gentoo Linux]
$ sudo apk add bb             [On Alpine Linux]
$ sudo pacman -S bb           [On Arch Linux]
$ sudo zypper set up bb      [On OpenSUSE]    

As soon as bb is put in, you run the command to see a visible impact of a ball bouncing across the terminal display.

$ bb

17. curl Command

Received’t or not it’s an superior feeling for you for those who can replace your Twitter standing from the command line in entrance of your pal they usually appear impressed?.

To publish a standing to Twitter utilizing the curl command, it’s worthwhile to use the Twitter API’s POST endpoint for making a tweet as proven.

$ curl -X POST -u "YourBearerToken:" -d "standing=Yourpercent20statuspercent20message" "https://api.twitter.com/1.1/statuses/replace.json"

18. ASCIIquarium

ASCIIquarium is an entertaining perl script that shows an animated aquarium in ASCII artwork format straight in your Linux terminal. It creates a simulation of underwater life with fish, crops, and different parts.

On Ubuntu or Debian-based methods, you possibly can set up ASCIIquarium with the next instructions.

First, it’s worthwhile to set up the Time period::Animation module as proven.

$ sudo apt set up libcurses-perl
$ sudo apt set up libcurses-perl
$ wget https://cpan.metacpan.org/authors/id/Okay/KB/KBAUCOM/Time period-Animation-2.5.tar.gz
$ tar xzf Time period-Animation-2.5.tar.gz
$ cd Time period-Animation-2.5/
$ perl Makefile.PL
$ make 
$ sudo make set up

Subsequent, set up ASCIIquarium with the next instructions.

$ cd /tmp
$ wget http://www.robobunny.com/tasks/asciiquarium/asciiquarium.tar.gz
$ tar -zxvf asciiquarium.tar.gz
$ cd asciiquarium_1.1/
$ sudo cp asciiquarium /usr/native/bin
$ sudo chmod 0755 /usr/native/bin/asciiquarium

Lastly, run “asciiquarium” or “/usr/native/bin/asciiquarium” within the terminal with out quotes and be part of the magic that can be happening in entrance of your eyes.

$ asciiquarium
Show ASCIIquarium in Linux
Present ASCIIquarium in Linux

19. Humorous Linux Man Pages

Humorous man pages, also called “man pages with angle,” are entertaining variations of the standard Linux man pages, as they don’t provide abt critical or sensible info, they’re meant to carry a smile to your face.

Set up Humorous Man Pages

$ sudo apt set up funny-manpages         [On Debian, Ubuntu and Mint]
$ sudo yum set up funny-manpages         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/funny-manpages  [On Gentoo Linux]
$ sudo apk add funny-manpages             [On Alpine Linux]
$ sudo pacman -S funny-manpages           [On Arch Linux]
$ sudo zypper set up funny-manpages      [On OpenSUSE]    

As soon as funny-manpages is put in, you possibly can have entry to the funny-man pages of the command you wish to view.

$ man child
$ man celibacy
$ man condom
$ man date
$ man echo
$ man flame
$ man flog
$ man gong
Linux Funny Man Pages
Linux Humorous Man Pages

20. pv Command

You might need seen the simulating textual content in motion pictures, which seems as whether it is being typed in real-time. Received’t or not it’s good, for those who can have such an impact in your terminal?

This may be achieved, by putting in the pv command (pipe viewer), which is used to watch the progress of knowledge by means of a pipeline.

Set up pv Command

$ sudo apt set up pv         [On Debian, Ubuntu and Mint]
$ sudo yum set up pv         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/pv  [On Gentoo Linux]
$ sudo apk add pv             [On Alpine Linux]
$ sudo pacman -S pv           [On Arch Linux]
$ sudo zypper set up pv      [On OpenSUSE]    

As soon as, the pv command is put in efficiently in your system, let’s attempt to run the next one-liner command to see the real-time textual content impact on the display.

$ echo "Tecmint[dot]com is a neighborhood of Linux Nerds and Geeks" | pv -qL 10 
Show Animated Text in Terminal
Present Animated Textual content within the Terminal

The q possibility means ‘quiet‘, no output info, and possibility L means the restrict of switch of bytes per second. The quantity worth could be adjusted in both route (have to be an integer) to get the specified simulation of textual content.

21. rig Command

The rig quick for “Random Identification Generator” is a command that’s used to generate random pretend identities for testing, simulation, or different functions.

Set up rig Command

$ sudo apt set up rig         [On Debian, Ubuntu and Mint]
$ sudo yum set up rig         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/rig  [On Gentoo Linux]
$ sudo apk add rig             [On Alpine Linux]
$ sudo pacman -S rig           [On Arch Linux]
$ sudo zypper set up rig      [On OpenSUSE]    

As soon as put in, you should use the rig command to generate random identities.

$ rig
Generate Fake Identities in Linux
Generate Faux Identities in Linux

22. aview Command

The aview command converts photographs into ASCII artwork and shows them within the terminal. To make use of the aview command, it’s worthwhile to have it put in in your system.

$ sudo apt set up aview         [On Debian, Ubuntu and Mint]
$ sudo yum set up aview         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/aview  [On Gentoo Linux]
$ sudo apk add aview             [On Alpine Linux]
$ sudo pacman -S aview           [On Arch Linux]
$ sudo zypper set up aview      [On OpenSUSE]    

I’ve obtained a picture named ‘actress.jpg‘ (guess the actress) in my present working listing and I wish to view it on the terminal in ASCII format.

$ aview actress.jpg
View Image in Linux Terminal
View Picture in Linux Terminal

23. xeyes Command

Earlier, we launched a command ‘oneko‘ which attaches Jerry with a mouse pointer and retains on chasing it. An identical program ‘xeyes‘ is a graphical program and as quickly as you hearth the command you will note two monster eyes chasing your motion.

$ sudo apt set up x11-apps     [On Debian, Ubuntu and Mint]
$ sudo yum set up xeyes         [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/xeyes  [On Gentoo Linux]
$ sudo apk add xeyes             [On Alpine Linux]
$ sudo pacman -S xeyes           [On Arch Linux]
$ sudo zypper set up xeyes      [On OpenSUSE]    

As soon as put in, run:

$ xeyes
Show Pair of Eyes in Linux
Present Pair of Eyes in Linux

24. Linux Tweaks

It’s time so that you can have some one-liner Linux tweaks to have some enjoyable within the terminal.

$ world

bash: world: not discovered
$ contact ladies boo** 

contact: can not contact `ladies boo**': Permission denied
$ good man girl

No handbook entry for girl
$ ^How did the intercourse change operation go?^ 

bash: :s^How did the intercourse change operation go?^ : substitution failed
$ %blow 

bash: fg: %blow: no such job
$ make love 

make: *** No rule to make goal `love'.  Cease.
$ [ whereis my brain?      
              
sh: 2: [: missing ]
$ % man: why did you break up? 

man:: Too many arguments.
$ % !:say, what's saccharine? 

Unhealthy substitute.
$ (- 

bash: (-: command not discovered

Linux is naughty – if you recognize what I imply…:)

$ who | grep -i blonde | date; cd ~; unzip; contact; strip; finger; mount; gasp; sure; uptime; umount; sleep

There are specific others however these don’t work on all of the methods and therefore not included on this article. A few of them are man canine, filter, banner, and so on.

Have enjoyable, you possibly can say me thanks later 🙂 yup, your remark is very appreciated which inspires us to jot down extra. Inform us which command you preferred probably the most. Keep tuned I can be again quickly with one other article value studying.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments