20 Funny And Fun Recipes In Linux, Linux Is Fun! Linux Is Really Funny And Fun
Linux is fun! You may not accept this. Surely at the end of this post, you would believe that Linux is really funny and fun.
1. The SL command (steam locomotive)
You may use Be familiar with the “ls” command and use it constantly to view the contents of a folder, but due to typographical errors, you may sometimes get the “sl” result. How about having some fun in the terminal instead of receiving a “command not found” message.
Install sl:
root @ tecmint: ~ # apt-get install sl (In Debian like OS) root @ tecmint: ~ # yum -y install sl (In Red Hat like OS)
Output
root @ tecmint: ~ # sl
2. No telnet command!
Not as complicated as it seems. You should be familiar with telnet. telnet is a two-way network protocol. There is nothing to install here. All you need is Linux and the Internet.
root @ tecmint: ~ # telnet towel.blinkenlights.nl
3. The fortune recipe
Sometimes the random results of the fortune recipe are fascinating and fun.
Install Fortune
root @ tecmint: ~ # apt-get install fortune (for aptitude based system) root @ tecmint: ~ # yum install fortune (for yum based system)
root @ tecmint: ~ # fortune You're not my type. For that matter, you're not even my species !!! Future looks spotty. You will spill soup in late evening. You worry too much about your job. Stop it. You are not paid enough to worry. Your love life will be ... interesting.
4. rev command stands for Reverse
This command reverses any string given to it.
root @ tecmint: ~ # rev 123abc cba321 xuniL eb ot nrob born to be Linux
5. Factor command
This command has a mathematical application and its output is all the first factors that make up the input number.
root @ tecmint: ~ # factor 5 5: 5 12 12: 2 2 3 1001 1001: 7 11 13 5442134 5442134: 2 2721067
6. The script command is
correct, this is not a script, but it is beautiful.
root @ tecmint: ~ # 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
7. The Cowsay command is
an ASCII cow in the terminal that says whatever you want.
Cowsay Installation:
root @ tecmint: ~ # apt-get install cowsay (for Debian based OS) root @ tecmint: ~ # yum install cowsay (for Red Hat based OS)
Output
root @ tecmint: ~ # cowsay I Love nix ____________ <I Love nix> ------------ \ ^ __ ^ \ (oo) \ _______ (__) \) \ / \ || ---- w | || ||
How is the fortune command described by cowsay?
root @ tecmint: ~ # 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 pipe instruction and is used when we want the output of one command to be the input of another. In the example above, the output of the ‘fortune’ command acted as the input of the ‘cowsay’ command. This use of the pipe is frequently used in scripting and programming.
“xcowsay” is a graphical application that has a function similar to cowsay but graphically.
apt-get install xcowsay yum install xcowsay
Output
root @ tecmint: ~ # xcowsay I Love nix
The Cowthink tool is another command that only executes the phrase “cow think Linux is so funny”. See the output difference between cowsay and cow think.
apt-get insatll cowthink yum install cowthink
Output
root @ tecmint: ~ # cowthink .... Linux is sooo funny ___________________________ (.... Linux is sooo funny) ------------------------- o ^ __ ^ o (oo) \ _______ (__) \) \ / \ || ---- w | || ||
8. The yes
the command is a funny and equally useful command, especially in scripts and for system administrators who can generate a predefined automated response in the terminal.
root @ tecmint: ~ # 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: (Press ctrl + c to stop the command)
9. The toilet command is
like a joke! But it is definitely not a joke! The name of this command alone is funny and we do not know where this name was put on this command.
Install Toilet
root @ tecmint: ~ # apt-get install toilet root @ tecmint: ~ # yum install toilet
Output
root @ tecmint: ~ # toilet tecmint mmmmmmm "m # mmm mmm mmmmm mmm m mm mm # mm mmm mmm mmmmm # # "" # # "" # # # # # "# # #" "#" "# # # # # # "" "" "# # # # # # # # # # # # # # # # # "#mm" "#mm" # # # mm # mm # # "mm #" #mm "" # m # "# # #
This command even offers some colors and fonts.
root @ tecmint: ~ # toilet -f mono12 -F metal linux-zone.org
Note: Figlet is another command that provides more or less the same result in the terminal.
10. The cmatrix command You have
probably seen the Hollywood movie ‘matrix’ and you are very fascinated by it and the attraction created by Neo. The output of this command produces an animation similar to what the hacker screen showed in the matrix movie.
Install Cmatrix
root @ tecmint: ~ # apt-get install cmatrix root @ tecmint: ~ # yum install cmatrix
Output
root @ tecmint: ~ # cmatrix
11. Command: oneko
Do you think that the Linux mouse pointer looks like the nonsense black or white pointer that has no particular shape or animation? But we tell you that you are wrong. “oneko” is a package that attaches a “Jerry” to your mouse pointer and moves it with the pointer wherever it goes.
Install Oneko
root @ tecmint: ~ # apt-get install oneko root @ tecmint: ~ # yum install oneko
Output
root @ tecmint: ~ # oneko
Note: When you close the terminal while oneko is running, jerry disappears and does not start at start-up. You can add start-up software and enjoy Jerry’s continued presence.
12. Fork Bomb Command
This is a malicious piece of code. By doing so, you endanger yourself. It is actually a three-cluster bomb that multiplies exponentially to use up all the resources and regenerate the system. (To test the power of the following code, you only have to try it once, but everything is compromised, so save and close all your programs and files before running the fork bomb.)
root @ tecmint: ~ #: () {: |: &}:
13. While
command The “while” command is a script that shows you the date and time in color to cut it by pressing ctrl + c. Just copy the following code in the terminal.
root @ tecmint: ~ # while true; do echo "$ (date '+% D% T' | toilet -f term -F border --gay)"; sleep 1; done
Note: The above script when modified as the following command gives you the same output with a slight change that you can check in your terminal.
root @ tecmint: ~ # while true; do clear; echo "$ (date '+% D% T' | toilet -f term -F border --gay)"; sleep 1; done
14. espeak command
Before executing this command in your terminal, turn up the volume of your speaker and say how you felt hearing this sound!
Install espeak
root @ tecmint: ~ # apt-get install espeak root @ tecmint: ~ # yum install espeak
Output
root @ tecmint: ~ # espeak "Linuxzone is a very good website dedicated to Foss Community"
15. aafire command
What do you think about fire in your terminal? Just type “aafire” in the terminal, without any quotes, and see the magic! You can press any key to end it.
Install aafire
root @ tecmint: ~ # apt-get install libaa-bin
Output
root @ tecmint: ~ # aafire
16. Command bb
First, install”apt-get install bb” and then type “bb” in the terminal and see what happens.
root @ tecmint: ~ # bb
17. The URL command
will definitely feel great if you can update your Twitter status via the command line in front of your friends and impress them. Just enter your details instead of your username, password, and your status message.
root @ tecmint: ~ # url -u YourUsername: YourPassword -d status = "Your status message" http://twitter.com/statuses/update.xml
18. ASCIIquarium
With this command, you will have an aquarium in your terminal.
root @ tecmint: ~ # apt-get install libcurses-perl root @ tecmint: ~ # cd / tmp root @ tecmint: ~ # wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz root @ tecmint: ~ # tar -zxvf Term-Animation-2.4.tar.gz root @ tecmint: ~ # cd Term-Animation-2.4 / root @ tecmint: ~ # perl Makefile.PL && make && make test root @ tecmint: ~ # make install
Installing ASCIIquarium
Now download and install ASCIIquarium.
root @ tecmint: ~ # cd / tmp root @ tecmint: ~ # wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz root @ tecmint: ~ # tar -zxvf asciiquarium.tar.gz root @ tecmint: ~ # cd asciiquarium_1.1 / root @ tecmint: ~ # cp asciiquarium / usr / local / bin root @ tecmint: ~ # chmod 0755 / usr / local / bin / asciiquarium
Finally, run ” asciiquarium ” or “/ usr / local / bin / asciiquarium “, it will happen right in front of your eyes without any magic.
root @ tecmint: ~ # asciiquarium
19. funny manpages command
First, run “apt-get install funny-manpages” and then run man pages for the following commands. They are all very funny.
baby celibacy date echo flame flog gong grope, egrope, fgrope party rescrog rm rtfm tm uubp xkill xlart strfry
for example :
root @ tecmint: ~ # man baby
20. Linux Tricks
It’s time to combine a bit of joke and tricks, and here are some questions from Linux and funny and interesting answers from Linux:
code:
root @ tecmint: ~ # world bash: world: not found
code:
root @ tecmint: ~ # touch girls \ boo ** touch: cannot touch `girls boo ** ': Permission denied
code:
root @ tecmint: nice # nice man woman No manual entry for woman
code:
root @ tecmint: ~ # ^ How did the sex change operation go? ^ bash:: s ^ How did the sex change operation go? ^: substitution failed
code:
root @ tecmint: ~ #% blow bash: fg:% blow: no such job
code:
root @ tecmint: ~ # make love make: *** No rule to make target `love '. Stop.
code:
$ [whereis my brain? sh: 2: [: missing]
code:
% man: why did you get a divorce? man :: Too many arguments.
code:
%!: say, what is saccharine? Bad substitute.
code:
server @ localhost: / srv $ \ (- bash: (-: command not found