The funny graphic of the Linux command line

Source: Internet
Author: User

Have you ever seen a train on the Linux command line? What about the cat and the mouse? Editing the Linux command line is not always a serious matter. You can totally entertain yourself with it. Let's talk about the nature of the Linux command line.

Suppose: All the examples in this article use Ubuntu Linux. The command line feature described in this article may be the default in your Linux system.

Interesting linux command-line effects

1. Linux "SL" Command line

Although "SL" represents the "steam engine head", it is used to remind the command line to not turn "LS" into "SL". Let's see what happens when we run this command in the system.

First, when we install it, set it to not appear with standard Linux. The installation can be done easily with "apt-get".

sudo apt-get Install SL

Most installations require sudo privileges. After the installation is complete, enter "SL" in the command prompt line.

$sl

We saw the animated steam engine nose from the right side of the screen to the left. This locomotive is drawn with ASCLL characters.

Here are the effects on my machine:

Is it harder than we normally do with linux command lines? I think the Linux user who is immersed in the job must smile when they see this unexpected animation and realize that their input is wrong.

Even this simple command line can provide specific options.

Synopsis

SL [-alfe]

DESCRIPTION

SL displays animations aimed to correct the users who accidentally enter SL instead of LS. SL stands for Steam locomotive.

OPTIONS

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

-L shows little one.

-F It flies.

-e Allow Interrupt by CTRL + C.

You can also use $alia LS=SL to give people a prank.

2. Linux "Yes" command

Here is a command to print the input string until the process is finished. In the event that the user does not specify any input string, the default command is "Y".

The command will run like this:

$yes Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

Mylinuxbook

^c$

Use "CTRL + C" to end the foreground run process.

It's strange, isn't it? Why do we want the command to print the string all the time in the process? Although this is a silly way to run, it is not necessarily useless. We can use the "Yes" command in a particular script, in which we can reply with a repeat operation. For example, we could operate on a set of files, and Linux would ask us to confirm the file. We can use the "Yes" command to automatically reply.

3. Linux "Rev" command

It's very simple, but I find this line of command really interesting. It reverses the input string one line after the other. The name "Rev" Command comes from the English reverse. You can enter "Rev" in the command designator and press ENTER

$rev

The terminal prompts us to supply a string through standard input. Then we can see the output at the same time after each line.

For example, we enter "Mylinuxbook" and press ENTER.

Mylinuxbook

Koobxunilym

To return to the command prompt, you can use CTRL + C.

We see the inverted string appearing directly on the next line. Then we can enter the next string that wants to be reversed, and then press ENTER to get the standard output.

$ rev

Google

Elgoog

Linux is fun

Nuf Si Xunil

^c$

This line of command can also be entered as a file, which reverses all strings in the file and then turns the output into standard output.

$ cat Strings.txt

Mylinuxbook

Linux is so very much fun!

Happy Birthday

$ rev Strings.txt

Koobxunilym

!nuf hcum os si xunil

Yadhtrib Yppah

4. Linux "Fortune" command

The Fortune command is used as a fortune cookie on the same command line. We randomly found a proverb or message when we ran this command.

The first thing to do is to install it,

$sudo Apt-get Install Fortune

After the installation is complete, the way we run this command is:

$ fortune

You are have the power to influence all with whom your come in contact.

So, depending on this command, Linux can be like a fortune-teller.

5. Linux "Figlet" command

This command will be capitalized to display the string we entered in the title bar, and the display effect is made up of ASCII characters.

Because it is not a standard setting, this feature should be installed first.

$sudo Apt-get Install Figlet

It's really interesting to see the string become so on the terminal.

$ Figlet Mylinuxbook

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

6. Linux "Toilet" command

I don't know where the name of the order originated. But it does have a colourful command. Like Figlet, it displays the text as a title bar, but it works better.

First, install:

$sudo Apt-get Install toilet

Then try this simple command:

$toilet Mylinuxbook

The input effect is shown in the following illustration:

It is more artistic than the effect of the Figlet command.

However, it can also add colors. We can run the following commands to see the colors:

$toilet-F mono12-f Metal Mylinuxbook

The effect of the following figure:

7. Linux "Cowsay" command

The Cowsay command is an interesting command. It will depict cows, sheep and many other animals in ASCII characters. But not every Linux distribution has this command.

Use the following command to install this command:

$sudo Apt-get Install Cowsay

Now, run the command and give an information string in the command.

$cowsay "Linux is Fun"

We saw an interesting image:

Basically, we'll see a cow tell us what we've entered. Although there is only cow in this order, it can actually have the effect of sheep.

$cowsay-F sheep "I too Love Linux"

Effect as shown:

Just use '-l to see all the animals it can provide. Input:

$cowsay-L

The system will pop up with the following information:

Cow Files In/usr/cowsay/cows:

Apt Beavis.zen bong bud-frogs bunny Calvin cheese cock cower daemon Default

Dragon Dragon-and-cow Duck Elephant elephant-in-snake eyes

Ghostbusters GNU head-in Hellokitty Kiss Kitty Koala Kosh Luke-koala

Mech-and-cow Meow milk Moofasa moose mutilated pony Pony-smaller ren sheep

Skeleton Snowman Sodomized-sheep Stegosaurus Stimpy SuSE three-eyes Turkey

Turtle Tux unipony unipony-smaller Vader Vader-koala www

Therefore, we can use '-f ' to enter any animal in the above information.

To make it more interesting, you can let Cowsay say fortune information, such as input:

$fortune | Cowsay

The following effect appears:

8. Linux "Cmatrix" command

This command will generate a matrix-style animated effect of ASCII characters in the terminal.

Install First:

$sudo Apt-get Install Cmatrix

Run Now:

Cmatrix

The effect is cool:

End with "Ctrl + C" to generate an animation.

9. Linux "Oneko" command

This command is best to play. We all know the "cat and Mouse" animation, this command will remind us of their chase game. With this line of command, we can see the effect of a cat chasing a mouse (mouse pointer).

Install First:

$sudo Apt-get Install Oneko

To run this command, we enter:

Oneko

Then you can see that no matter where the mouse pointer is, Tom's cat will run after him. Here's a screenshot, but not enough to show the dynamic effect:

Even if we switch apps, the cat won't leave the mouse. It's not even limited to terminals.

To turn this off, simply end the process with CTRL + C in the terminal.

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.