The power of Open Source is the power of the people. Fayssalkhan.org is my place to share about open Source. Linux, Open Source and all things related to it are my bread and butter.
Abu Qatada reported Allah's Messenger (may peace be upon him) as saying: A good vision is from Allah and a bad dream (hulm) is from the satan; so if one of you sees anything (in a dream which he dislikes, he should spit on his left side thrice and seek refuge with Allah from its evil, and then it will never harm him.
Linuxis fun!Huh. OK, so you don’t believe me. Mind me at the end of this article you will have to believe thatLinuxis actually a fun box.
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“.
This command works even when you type ‘LS‘ and not ‘ls‘.
2. 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:~# fortune
You're not my type. For that matter, you're not even my species!!!
Future looks spotty. You will spill soup in the 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. Command: rev (Reverse)
It reverses every string given to it, is not it funny.
root@tecmint:~# rev
123abc
cba321
xuniL eb ot nrob
born to be Linux
5. Command: factor
Time for some Mathematics, this command output all the possible factors of a given number.
root@tecmint:~# cowsay I Love nix
____________
< I Love nix >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
How about pipelining ‘fortune command‘, described above with 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 pipeline instruction and it is used where the output of one command needs to be the input of another command. In the above example, the output of the ‘fortune‘ command acts as an input of the ‘cowsay‘ command. This pipeline instruction is frequently used in scripting and programming.
xcowsay is a graphical program that response similar to cowsay but in a graphical manner, hence it is X of cowsay.
cowthink is another command just run “cowthink Linux is sooo funny” and see the difference in the output of cowsay and cowthink.
Output
root@tecmint:~# cowthink ....Linux is sooo funny
_________________________
( ....Linux is sooo funny )
-------------------------
o ^__^
o (oo)\_______
(__)\ )\/\
||----w |
|| ||
8. 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.
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: (Till you interrupt i.e ctrl+c).
9. Command: toilet
what? Are u kidding, huh no! Definitely not, but for sure this command name itself is too funny, and I don’t know from where this command gets its name.
root@tecmint:~# toilet -f mono12 -F metal Tecmint.com
toilet command
Note: Figlet is another command that more or less provides such a kind of effect in the terminal.
10. Command: cmatrix
You might have seen the Hollywood movie ‘matrix‘ and would be fascinated with the power, Neo was provided with, to see anything and everything in the matrix or you might think of an animation that looks like Hacker‘s desktop.
OK so you believe that the mouse pointer of Linux is the same silly black/white pointer were no animation lies then I fear you could be wrong. “oneko” is a package that will attach a “Jerry” with your mouse pointer and moves along with you pointer.
Note: Once you close the terminal from which oneko was run, jerry will disappear, nor will start at start-up. You can add the application to start up and continue enjoying.
12. 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.
root@tecmint:~# :(){ :|:& }:
13. Command: while
The below “while” command is a script that provides you with a colored date and file till you interrupt (ctrl + c). Just copy and paste the below code into the terminal.
root@tecmint:~# while true; do echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done
Linux while command
Note: The above script when modified with the following command, will give similar output but with a little difference, check it in your terminal.
root@tecmint:~# while true; do clear; echo "$(date '+%D %T' | toilet -f term -F border --gay)"; sleep 1; done
14. Command: espeak
Just Turn the Knob of your multimedia speaker to full before pasting this command in your terminal and let us know how you felt listening to the god’s voice.
Won’t it be an awesome feeling for you if you can update your Twitter status from the command line in front of your friend and they seem impressed? OK just replace username, password, and your status message with your’s username, password, and “your status message“.
root@tecmint:~# curl -u YourUsername:YourPassword -d status="Your status message" http://twitter.com/statuses/update.xml
18. ASCIIquarium
How it will be to get an aquarium in the 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
Install 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
And finally, run “asciiquarium” or “/usr/local/bin/asciiquarium” in the terminal without quotes and be a part of the magic that will be taking place in front of your eyes.
root@tecmint:~# asciiquarium
aquarium command
19. Command: funny manpages
First, install the funny manpages and then run man pages for the commands below.
root@tecmint:~# nice man woman
No manual entry for woman
root@tecmint:~# ^How did the sex change operation go?^
bash: :s^How did the sex change operation go?^ : substitution failed
root@tecmint:~# %blow
bash: fg: %blow: no such job
root@tecmint:~# make love
make: *** No rule to make target `love'. Stop.
$ [ whereis my brain?
sh: 2: [: missing ]
% man: why did you get a divorce?
man:: Too many arguments.
% !:say, what is saccharine?
Bad substitute.
server@localhost:/srv$ \(-
bash: (-: command not found
Linux is sexy: who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep (If you know what I mean)
There are certain others but these don’t work on all the systems and hence not included in this article. Some of them are man dog, filter, banner, etc.