Introduction to 6 interesting terminal tools in Linux

Source: Internet
Author: User

1. PV command

You may have seen the mock captions in the movie, they seem to have been knocked out in real time. Wouldn't it be nice if I could achieve this effect in the terminal?

This can be done. We can install the ' PV ' command on Linux systems via ' apt ' or ' yum ' tool. The installation commands are as follows.

The code is as follows:

# Yum Install PV

[on RedHat based Systems]

The code is as follows:

# sudo apt-get install PV

[on Debian based Systems]

After the ' PV ' command was successfully installed, we tried to run the following Single-line command to view the effect of live text output at the terminal.

The code is as follows:

$ echo "Tecmint[dot]com is a community of Linux nerds and Geeks" | PV-QL 10

Note: the ' q ' option indicates ' quiet ', no other output information, the ' L ' option indicates the maximum number of bytes converted per second. Adjust the value of a number (which must be an integer) to display the text effect in a different direction.

2. Toilet command

Using a single-line script command ' toilet ' to display a text with a border added to the terminal what about it? Again, you have to make sure that ' toilet ' is installed on your computer. If not, please use apt or yum installation. (Translator note: ' Toilet ' is not in Fedora's official warehouse, you can download the source code from GitHub to install)

The code is as follows:

$ while true; Do echo $ (date | Toilet-f term-f border–tecmint) "; Sleep 1; Done

Note: The above script needs to be paused using the Ctrl+z key.

3. Rig command

This command generates a random identity message and address at a time. To run this command, you need to install ' rig ' with apt or yum. (Translator: ' Rig ' is not in Fedora's official warehouse, I only found the Ubuntu Deb on Rpmseek and can use it to install.)

The code is as follows:

# rig

4. Aview command

What do you think of displaying pictures in the terminal in ASCII format? We must install the package ' Aview ' with apt or yum. (Translator Note: ' Avieww ' is not in Fedora's official warehouse and can be installed by downloading source code from Aview's Project home page.) There is a picture named ' Elephant.jpg ' in the current working directory, and I want to view it in ASCII mode on the terminal.

The code is as follows:

$ Asciiview Elephant.jpg-driver Curses

5. Xeyes command

In the last article, we introduced the ' Oneko ' command, which shows a mouse that follows the mouse pointer movement. ' Xeyes ' is a similar graphics program, and when you run it, you can see the little monster's two eyeballs following your mouse movement.

The code is as follows:

$ xeyes

6. Cowsay command

Do you remember the last time we introduced this order? It can display a predetermined text and a character consisting of a cow. What if you want to use other animals instead of cows? View list of available animals:

The code is as follows:

$ cowsay-l

How to use ASCII to depict snake-like swallowing?

The code is as follows:

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

What happens to a goat?

The code is as follows:

$ cowsay-f GNU Tecmint is best

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.