Fun in the terminal: 6 interesting Linux Command Line tools

Source: Internet
Author: User

Fun in the terminal: 6 interesting Linux Command Line tools

Previously, we showed some interesting articles about Linux Command Line commands. These articles tell us that Linux is not as complex as it looks. If we know how to use it, it will be very interesting. linux Command lines can execute complex tasks in a concise and perfect manner, and are very interesting.

The former contains 20 interesting Linux commands/scripts (and sub-commands) and is highly praised by readers. the other article is not as popular as the previous one. It contains commands, scripts, and improvements that enable you to convert text files, words, and strings.

This article introduces some new interesting commands and single-line scripts, which will surely surprise you.

1. pv command

You may have seen simulated subtitles in a movie. They seem to have been knocked out in real time. Isn't it good if I can achieve this in a terminal?

This can be done. We can install it through'Apt'Or'Yum'Tool installation on Linux System'Pv'COMMAND. The installation command is as follows.

 
 
  1. # Yum install pv [on RedHat-based systems]
  2.  
  3. # Sudo apt-get install pv [On Debian-based systems]

'Pv'After the command is successfully installed, we try to run the following single-line command on the terminal to view the effect of real-time text output.

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

Running pv command

Note::'Q'Option indicates 'quiet', no other output information ,'LThe 'option indicates the maximum number of bytes converted per second. Adjust the number value (must be an integer) to display the text effect in another direction.

2. toilet command

Use a single-line script command'Toilet'The terminal displays the text for adding a border? Similarly, you must ensure that'Toilet'It has been installed on your computer. if not, use apt or yum for installation. (Note: 'toilet' is not in the official ora repository. You can download the source code from github for installation)

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

Running toilet command

Note:: The above script needs to be usedCtrl + zTo pause.

3. rig command

This command generates a random ID and address each time. To run this command, you need to use apt or yum to install'Rig.)

 
 
  1. # rig

Running rig command

4. aview command

What do you think about displaying images in ASCII format on a terminal? We must install the software package with apt or yum'Aview'. (Note: 'avieww' is not in the official ora repository. You can download the source code from the aview project homepage to install it.) There is a file named 'in the current working directory'Elephant.jpg'Image. I want to view it on the terminal in ASCII mode.

 
 
  1. $ asciiview elephant.jpg -driver curses

Running aview command

5. xeyes command

In the previous article, we introduced'Oneko'COMMAND, it can display a mouse that follows the mouse pointer .'Xeyes'Is a similar graphics program. When you run it, you can see two eyes of the little monster following your mouse movement.

 
 
  1. $ xeyes

Running xeyes command

6. cowsay command

Do you still remember the command we introduced last time? It can display a piece of pre-determined text and a character consisting of a cow. What if you want to use another animal to replace the cow? View the list of available animals:

 
 
  1. $ cowsay -l

How can we use ASCII to describe snakes?

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

Running cowsay command

What if I change to a goat?

 
 
  1. $ cowsay -f gnu Tecmint is Best

Running goat cowsay command

I will bring back another interesting article. Don't forget to leave your comment below.

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

Author: Avishek Kumar Translator: wangjiezhe Proofreader: Caroline

This article was originally translated by LCTT and launched with the Linux honor in China

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.