Linux command line Funny No limit

Source: Internet
Author: User

Reference:http://os.51cto.com/art/201304/390059.htm

April 18, 2013 51CTO headline "Have you ever seen a train on the Linux command line?" "The Cat and the mouse"? Editing the Linux command line is not always a matter of serious formality. You can totally entertain yourself with it. Let's discuss the characteristics of the Linux command line with you.

Assume: All 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 functionality

1. Linux "SL" Command line

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

First, when we install it, we want to set it to not appear with standard Linux. It is easy to complete the installation with "Apt-get".

sudo apt-get Install SL

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

$sl

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

Here's what's On my machine:

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

Even this simple command line can provide specific options.

Synopsissl [-alfe]DESCRIPTIONSL displays animations aimed to correct the users who accidentally enter SL instead of LS.  Allow    Interrupt by Ctrl + C.

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

2. Linux "Yes" command

Here is a command that prints the input string until the end of the process. In the event that the user does not specify any input string, the default command is "Y".

The command will run like this:

$yes Mylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbookmylinuxbook mylinuxbookmylinuxbookmylinuxbook^c$

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

It's weird, 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 respond with repeated actions. For example, we can operate on a set of files, and Linux asks us to confirm the file. We can use the "Yes" command to automatically reply.

3. Linux "Rev" command

Although it was very simple, I found that the order was actually very interesting. It reverses the input string one line after the other. The name of the "Rev" command is derived from the English reverse. You can enter "Rev" in the command prompt and press ENTER

$rev

The terminal will prompt us to provide a string through standard input. Then we can see the output at the same time behind each line.

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

Mylinuxbookkoobxunilym

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

We see the inverted string appearing directly on the next line. We can then enter the next string we want to invert, and then press ENTER to get the standard output.

$ revgoogleelgooglinux is funnuf si xunil^c$

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

$ cat Strings.txtmylinuxbooklinux is so much fun! Happy birthday$ rev strings.txtkoobxunilym!nuf hcum os si xunilyadhtrib yppah

4. Linux "Fortune" command

The Fortune command is used as a fortune cookie on the same command line. When we run this command, we randomly find a proverb or a message.

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:

$ fortuneyou has the power to influence all with whom you come in contact.

So, relying 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, the display effect is composed of ASCII characters.

Because it is not a standard setting, you should install this feature first.

$sudo Apt-get Install Figlet

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

$ Figlet Mylinuxbook

You can try using "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 this command originated. But it does have a colorful command. Like Figlet, it displays 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 as follows:

It is more artistic than the effect of 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

Effects such as:

7. Linux "Cowsay" command

The Cowsay command is an interesting command. It uses ASCII characters to depict cows, sheep, and many other animals. 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 have seen an interesting image:

Basically, we'll see a bull tell us the information we've entered. Although only the cow in this command, but in fact, it can also have the effect of sheep.

$cowsay-F sheep "I too Love Linux"

Effect

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

$cowsay-L

The system pops up the following information:

Cow files in/usr/cowsay/cows:apt Beavis.zen bong bud-frogs bunny Calvin cheese Cock cower daemon Defaultdragon dragon-and -cow duck elephant elephant-in-snake eyes flaming-sheepghostbusters gnu head-in hellokitty kiss Kitty Koala Kosh luke-koal Amech-and-cow Meow milk Moofasa moose mutilated pony Pony-smaller ren sheepskeleton snowman sodomized-sheep Stegosaurus St Impy SuSE three-eyes turkeyturtle 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 generates a matrix-style animation effect that consists of ASCII characters in the terminal.

Install First:

$sudo Apt-get Install Cmatrix

Now run:

Cmatrix

The effect is cool:

End with "Ctrl + C" to create the animation.

9. Linux "Oneko" command

This command is the best 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 placed, Tom will run after the cat. The following are, however, insufficient to show the dynamic effect:

Even if we switch the application, the cat will not leave the mouse. It is not even limited to terminals.

When you want to turn this off, simply end the process with CTRL + C in the terminal.

Conclusion

I hope readers can understand the above interesting Linux command line features. If you also know more interesting commands such as this, you may wish to share it with us!

Linux command line Funny No limit

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.