TranslateProject/sources/tech/20140829 6 Interesting Funny Commands of Linux (Fun in Terminal) – Part II.md

5.3 KiB
Raw Blame History

6 Interesting Funny Commands of Linux (Fun in Terminal) Part II

In our past following articles, weve shown some useful articles on some funny commands of Linux, which shows that Linux is not as complex as it seems and can be fun if we know how to use it. Linux command line can perform any complex task very easily and with perfection and can be interesting and joyful.

Funny Linux Commands Funny Linux Commands

The former Post comprises of 20 funny Linux Commands/Script (and subcommands) which was highly appreciated by our readers. The other post, though not that much popular as former comprises of Commands/ Scripts and Tweaks which lets you play with text files, words and strings.

This post aims at bringing some new fun commands and one-liner scripts which is going to rejoice you.

1. pv Command

You might have seen simulating text in movies. It appears as, it is being typed in real time. Wont it be nice, if you can have such an effect in terminal?

This can be achieved, by installing pv command in your Linux system by using apt or yum tool. Lets install pv command as shown.

# yum install pv			[On RedHat based Systems]

# sudo apt-get install pv	        [On Debian based Systems]

Once, pv command installed successfully on your system, lets try to run the following one liner command to see the real time text effect on the screen.

$ echo "Tecmint[dot]com is a community of Linux Nerds and Geeks" | pv -qL 10 

pv command in action pv command in action

Note: The q option means quite, no output information and option L means the Limit of Transfer of bytes per second. The number value can be adjusted in either direction (must be integer) to get desired simulation of text.

2. toilet Command

How about printing text with border in terminal, using an one-liner script command toilet. Again, you must have toilet command installed on your system, if not use apt or yum to install it.

$ while true; do echo “$(date | toilet -f term -F border Tecmint)”; sleep 1; done

toilet command in action toilet command in action

Note: The above script needs to be suspended using ctrl+z key.

3. rig Command

This command generates a random identity and address, every time. To run, this command you need to install rig using apt or yum.

# rig

rig command in action rig command in action

4. aview Command

How about viewing an image in ASCII format on the terminal? We must have a package aview installed, just apt or yum it. Ive an image named elephant.jpg in my current working directory and I want view it on terminal as ASCII format.

$ asciiview elephant.jpg -driver curses 

aview command in action aview command in action

5. xeyes Command

In last article we introduced a command oneko which attaches jerry with mouse pointer and keeps on chasing it. A similar program xeyes which is a graphical programs and as soon as you fire the command you will see two monster eyes chasing your movement.

$ xeyes

xeyes command in action xeyes command in action

6. cowsay Command

Do you remember last time we introduced command, which is useful in output of desired text with animated character cow. What if you want other animal in place of cow? Check a list of available animals.

$ cowsay -l 

How about Elephant inside ASCII Snake?

$ cowsay -f elephant-in-snake Tecmint is Best 

cowsay command in action cowsay command in action

How about Elephant inside ASCII goat?

$ cowsay -f gnu Tecmint is Best 

cowsay goat in action cowsay goat in action

Thats all for now. Ill be here again with another interesting article. Till then stay update and connected to Tecmint. Dont forget to provide us with your valuable feedback in the comments below.


via: http://www.tecmint.com/linux-funny-commands/

作者:Avishek Kumar 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出