Interesting Linux command line functions

Source: Internet
Author: User
Interesting Linux command line functions 1. sl command first, install $ sudoapt-getinstallsl and then input $ sl. we can see that the animation steam engine head is redirected from the right of the screen to the left. This locomotive is drawn using ASCLL characters. Provide specific options as follows: SYNOPSISsl... interesting Linux command line functions

1. sl command
First, install $ sudo apt-get install sl
Then, enter $ sl
We saw the animation steam engine head moving from the right side of the screen to the left. This locomotive is drawn using ASCLL characters.

The specific options are as follows: SYNOPSIS
Sl [-alFe]

DESCRIPTION
Sl Displays animations aimed to correct users who accidentally enter sl instead of ls. SL stands for Steam Locomotive.

OPTIONS
-A An accident seems to happen. You'll feel pity for people who cry for help.

-L shows little one.

-F It flies.

-E Allow interrupt by Ctrl + C.

2. rev command (reverse)
It will reverse the input string.
$ Rev
The token will prompt us to provide a string through standard input. Then we can see the output at the same time after each line.
For example, enter "mylinuxbook" and press enter.
Mylinuxbook
Koobxunilym
 
$ Cat strings.txt
MyLinuxBook
Linux is so much fun!
Happy Birthday

$ Rev strings.txt
KooBxuniLyM
! Nuf hcum OS si xuniL
YadhtriB Yppa

3. fortune command
When we run this command, we randomly find a proverb or message.
First install it: $ sudo apt-get install fortune
Run this command: $ fortune
You have the power to influence all with whom you come in contact.

4. figlet command
This command will display the input string in uppercase in the title bar. the display effect is composed of ASCII characters.
First install: $ sudo apt-get install figlet
Input: $ figlet mylinuxbook

You can try to use "figlet" to add a title bar in the script header or source code.

5. toilet command
It is a colorful command. Like figlet, it displays the text as the title bar, but the effect is better.
Install: $ sudo apt-get install toilet
Input: $ toilet mylinuxbook

It is more artistic than the figlet command.
However, it can also add colors. We can run the following command to see the color:
$ Toilet-f mono12-F metal mylinuxbook


6. cowsay command
It depicts cattle, sheep, and many other animals with ASCII characters. But not every Linux release has this command.
Run the following command to install the command:
$ Sudo apt-get install cowsay
Now, run the command and give an information string in the command.
$ Cowsay "Linux is fun"
We see an interesting image:

Basically, we will see what a cow tells us.
Although only cow is displayed in this command, it can still have the effect of goat.
$ Cowsay-f sheep "I too love linux"
Effect
  
You only need to use '-l to see all the animals it provides. Input:
$ Cowsay-l
The following information is displayed:
Cow files in/usr/share/cowsay/cows:
Apt beavis. zen bong bud-frogs bunny calvin cheese cock cower daemon default
Dragon-and-cow duck 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-smaller ren sheep
Skeleton snowman sodomized-sheep steg1_urus stimpy suse three-eyes turkey
Turtle tux unipony-smaller vader-koala www
Therefore, we can use '-f' to input any animal in the above information.

For example, cowsay-f milk "Do you want to drink? "

  
To make it more interesting, you can let cowsay say fortune information, such as input:
$ Fortune | cowsay
The following results are displayed:


7. cmatrix command
This command will generate a Matrix-style animation consisting of ASCII characters on the terminal.
First install: $ sudo apt-get install cmatrix
Run Now: $ cmatrix

Run "ctrl + c" to generate an animation.

8. oneko command
We all know the animation of "cats and mice". This command reminds us of their pursuit of games.
With this command, we can see the effect of a cat chasing a mouse (mouse indicator.
First install: $ sudo apt-get install oneko
Run this command: $ oneko
Then you can see that no matter where the mouse indicator is placed, Tomcats will chase and run. Below is, but it is not enough to show the dynamic effect:


Even if we switch the application, the cat will not leave the mouse. It is not limited to terminals.
To disable this function, you only need to use ctrl + c in the terminal to end the process.
Related Article

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.