Tag Archives: funny

Funny linux commands

This was a funny post that only my nerd friends are even going to understand. Sorry you poor people on windows. None of this will work.

This was found here. http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/

I will just list a few

Command: sl (Steam Locomotive)

You might be aware of command ‘ls‘ the list command and use it 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 terminal and not “command not found“.

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

sl funny command

sl command

This command works even when you type ‘LS‘ and not ‘ls‘.

Command: rev (Reverse)

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

root@tecmint:~# rev

123abc 
cba321 

xuniL eb ot nrob
born to be Linux

Command: Cowsay

An ASCII cow in terminal that will say what ever you want.

Install Cowsay

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 about pipelineing ‘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 ‘fortune‘ command acts as an input of ‘cowsay‘ command. This pipeline instruction is frequently used in scripting and programming.

There are 17 others at the link featured at the top.