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.
- # Yum install pv [on RedHat-based systems]
-
- # 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.
- $ 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)
- $ 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.)
- # 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.
- $ 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.
- $ 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:
- $ cowsay -l
How can we use ASCII to describe snakes?
- $ cowsay -f elephant-in-snake Tecmint is Best
Running cowsay command
What if I change to a goat?
- $ 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