Skip to main content

Funny and interesting Linux command line utilities


Working on Linux command line can be fun sometimes. Ubuntu Linux is used for all the examples. Enjoy at your own risk!:

1. Linux "sl" command

From the man page: "sl - display animations aimed to correct users who accidentally enter sl instead of ls."

$ sudo apt-get install sl
$ sl
(see image)

Animated steam locomotive loving across the screen from right to left. One can play a prank on someone by:

$ alias ls=sl

2. Linux "yes" command

From the man page: "yes - output a string repeatedly until killed"

$ yes linux
linux
linux
linux
linux
^C
$

Why would we want a command to keep on printing a string all the life of the process? We can use "yes" command in certain scripts where we want to feed the same answer in a repeated operation. For example, we are doing an operating on a set of files and Linux asks us to confirm for each and every file. We can auto-feed a yes using the "yes" command.

3. Linux "rev" command

From the man page: "rev — reverse lines of a file or files"

It reverses all the input strings given to it line by line. To play around, type the command "rev" on the command prompt and press enter:

$ rev
Linux
xuniL
google+
+elgoog
^C
$

This command also takes the input in the form of a file, where it reverses all the strings line wise in the file and prints the output to the standard output:

$ cat strings.txt
Linux is so much fun!
Happy Birthday
$ rev strings.txt
!nuf hcum os si xuniL
yadhtriB yppaH

4. Linux "fortune" command

From the man page: "fortune - print a random, hopefully interesting, adage"

The fortune command is in the same lines as fortune cookies. We get a random adage or a message when we run this command:

$ sudo apt-get install fortune
$ fortune
You have the power to influence all with whom you come in contact.
$ fortune
You'd like to do it instantaneously, but that's too slow.

5. Linux "figlet" command

From the man page: " FIGlet - display large characters made up of ordinary screen characters"

This displays our input string in large characters as banners formed out of ASCII characters:

$ sudo apt-get install figlet
$ figlet Google+
(see image)

One can add such banners in the scripts headers or sources using "figlet".

6. Linux "toilet" command

From the man page: "TOIlet - display large colourful characters"

It's a very colourful command. Similar to "figlet", it displays our text as banners but in a prettier way:

$ sudo apt-get install toilet
$ toilet Google+
(see image)

It has some colours to offer too. Let's see by running following command:

$ toilet -f mono12 -F metal Google+
(see image)

7. Linux "cowsay" command

From the man page: "cowsay/cowthink - configurable speaking/thinking cow (and a bit more)"

The "cowsay" command is an amusing command. It depicts the power of ASCII characters to draw a cow, sheep, and many other animals. However it might not always be present in every distribution of Linux:

$ sudo apt-get install cowsay
$ cowsay "Google+ is fun"
(see image)

Although the command name suggests a cow, it also offers to draw a sheep:

$ cowsay -f sheep "I too love Google+"
(see image)

To have all the capabilities as to what all animals it can draw, just use:

$ cowsay -l
Cow files in /usr/share/cowsay/cows:
apt beavis.zen bong bud-frogs bunny calvin cheese cock cower daemon default
dragon dragon-and-cow duck elephant elephant-in-snake eyes flaming-sheep
ghostbusters gnu head-in hellokitty kiss kitty koala kosh luke-koala
mech-and-cow meow milk moofasa moose mutilated pony pony-smaller ren sheep
skeleton snowman sodomized-sheep stegosaurus stimpy suse three-eyes turkey
turtle tux unipony unipony-smaller vader vader-koala www

Therefore, we can input any of the above animals with the "-f" option. To make it even more fun, one can pipe fortune message to cowsay:

$ fortune | cowsay

8. Linux "oneko" command

From the man page: "oneko - Creates a cute cat chasing around your mouse cursor."

With this command, we see a cat (Tom?) which is chasing our mouse (the mouse pointer, Jerry?):

$ sudo apt-get install oneko
$ oneko
(see image)

h/t +Rupali Sharma

Comments

Popular posts from this blog

Block ads domain di router openwrt

Kesal sekali tentunya ketika kita lagi berselancar di Dunia maya banyak banget iklan yang berbayang!!! apalagi iklannya bejibun sampai-sampai halaman browser sampai penuh dan kita handak mengkliknya satu persatu lama sekali kan!!!??? sedikit juga penjelasan mengenai ads ini, ads ini sangatlaah mengurusa bandwith kita dan yang paling parahnya penyebaran malware melalui ads ini sangatlah membahayakan komputer kita. okeh sekian penjelasan singkatnya CWIMM tutorial ini saya gunakan di router yang sudah saya ganti firmware ke OPENWRT 1. tambahkan file yang berada di     root@unsheel:~#/vi etc/dnsmasq.conf tambahkan ini address=/207.net/127.0.0.1 address=/247realmedia.com/127.0.0.1 address=/247realmedia.com/127.0.0.1 address=/2mdn.net/127.0.0.1 address=/2o7.net/127.0.0.1 address=/33across.com/127.0.0.1 address=/51yes.com/127.0.0.1 address=/abmr.net/127.0.0.1 address=/adbrite.com/127.0.0.1 address=/adbureau.net/127.0.0.1 address=/adchemy.com/127.0.0.1 address=/addthis.com

cara install printer epson stylus tx121x di backtrack

hello sahabat .. kali ini saya akan share bagaimana cara install printer epson stylus tx121x di backtrack langsung saja agan download drivernya di sini -----  > http://adf.ly/TCK26 -----  >  http://adf.ly/TCKbK -----  >  http://adf.ly/TCKjA setelah itu semua di download, lalu sahabat tinggal install saja satu persatu file .deb tersebut .... mudah koq hehehee .. oea jangan lupa juga install pendukung yang lainnya untuk mengconfiguration di system --> administation --> synaptic packet manager masukkan   " system-config-printer "   di quick search lalu centang system-config-printer-gnome system-config-printer-common system-config- printer-udev http://unsheal.blogspot.com/2013/07/cara-install-printer-epson-stylus.html okeeey deh selesai install printer driver epson tx121x di backtrack sudah bisa deeeh di gunakan printernya, beserta scanningnya sekian dari saya ...

Cara Upgrade Tp-link Mr3040 v.2 ke OpenWrt

Upgrade Tp-Link MR 3040 V.2 Sahabat kali ini saya akan share bagaimana cara untuk Upgrade firmware ke OpenWrt Bahan yang disiapkan, download firmware OpenWrt untuk tp-link mr 3040 v.2 kalo yang v.1 tidak bisa neeh disini linknya download Pertama kita login sebagai admin di router kita biasanya seeh http://192.168.0.1 bila Ip nya belum di ganti, dan bila Ip nya sudah di ganti di sesuaikan saja. setelah login klik System tools =>> Firmware Upgrade =>> pilih browse lalu kita cari di mana file yang tadi kita download setelah itu tekan tombol upgrade tunggu sampai beberapa menit oea PERINGATAN PENTING dalam proses ini jangan sampai mati routernya diamkan saja dan lihat prosesnya nanti akan seperti ini setelah proses semua itu selesai. untuk menuju ke admin ketikkan di browser 192.168.1.1 dan nanti akan tampak halaman seperti ini untuk passwordnya 5up neeh screenshoot kalo sudah login Sekian cara upgrade tp-link mr3040 v.2 ke firmware OpenWrt