Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the interesting Linux terminal command?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What is the interesting Linux terminal command? for this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Do you think there are only boring jobs in the Linux terminal? Then you must not know these interesting Linux commands.

Linux terminals are used to do complex tasks, and we have many useful linux command stunts to help you.

But did you know that you can do a lot of interesting things with the terminal? If you don't know, it doesn't matter, most Linux users only see the terminal as an interactive interface for managing the system and development work.

However, if you know that there are some terminal-based games and ASCII games that you can play on the terminal, you will be surprised.

Use these commands to have some fun in the Linux terminal

You may find these commands ridiculous or useless, but some can be taken advantage of.

I have placed the installation instructions for Ubuntu/Debian, and if you are using a Ubuntu-based distribution, make sure that the universe repository is enabled, as most of the commands are not in the main repository.

If you use Arch, Fedora, SUSE, Solus, or other non-Ubuntu distributions, use your distribution package management tool to install these interesting Linux commands.

1. Drive a train at the terminal

Let's get on the train and take a walk-and-go trip, that's right, literally!

The sl command allows you to run a train at the terminal.

Installation method:

Sudo apt install sl

When you are done, you can start by typing the following command on the terminal:

Sl

It's wonderful, isn't it? But wait, we're not done yet! You can also make your train fly, just add the parameter-F, Mr. Porter, please fly:

Sl-F

This will make the train grow wings and fly out of the terminal window!

2. Add Matrix effect to your Linux terminal

Remember the sci-fi movie Matrix? The green characters falling from the terminal have become the symbol of the Matrix.

You can also have such Matrix digital rain on your Linux computer! You just need to install cmatric and type it on the terminal.

Install cmatrix on Debian/Ubuntu Linux:

Sudo apt install cmatrix

Now, all you have to do is enter the following command, and there will be a Matrix screen on the terminal:

Cmatrix

Press Ctrl+C to stop it, Mr. Hacker.

3. Ignite

Take the fire extinguisher, because next you are going to light a fire in your terminal!

To install it, you have to type:

Sudo apt install libaa-bin

When you are done, you enter the following command, and your terminal will ignite a flame:

Aafire

Press Ctrl+C to stop it.

4. Fortune cookie command

Want to know how lucky you are, but you don't have fortune cookies?

Don't worry, all you have to do is type fortune at the terminal and press enter. The terminal will randomly display a lucky phrase, just like you get from a fortune cookie.

Install it:

Sudo apt install fortune

When you're done, just type the following on the command line and you'll know how lucky you are:

Fortune

This is a command that you can actually use. You can use it as a daily message so that in a multi-user environment, each user will get a "fortune cookie" after logging in.

You can also add it to the bashrc file so that you will see it when you log in to the terminal.

5. Pet lovers? This is for you.

Oneko is an interesting command that turns your cursor into a mouse and then creates a curious cat that will chase you once you move the cursor. This is not limited to terminals. When the cat chases the cursor, you can continue to work.

It would be fun if you had kids at home.

Install oneko with the following command:

Sudo apt install oneko

Run it with the following command:

Oneko

If you don't like cats and dogs, type:

Oneko-dog

It has many kinds of small pets, you can use oneko-help to get information. Press Ctrl+C to stop it.

6. There is a little brother watching you

Xeyes is a small GUI program that can draw a pair of eyes staring at you all the time! It will continue to follow your mouse cursor and run commands to see for yourself!

You can install it with the following command:

Sudo apt install xeyes

And then use it like this:

Xeyes

Press Ctrl+C to stop it.

7. Let the terminal speak for you.

Turn on your speaker and try this command. ESpeak is an interesting command that allows your terminal to talk. Yes, you heard me right.

Install this package first:

Sudo apt install espeak

Next, you just type what you want to hear on the command line:

Espeak "Type what your computer says"

No matter what you put in double quotes, your computer will repeat it! It's like an echo command in Linux, but it's not printed, it's spoken.

8. Toilet (but has nothing to do with the bathroom)

It sounds a little strange, yes. However, this is just a command that converts text into large ASCII characters.

Install toilet with this command:

Sudo apt install toilet

When you are done, all you need to do is enter:

Toilet sample text you want

I don't know why this Mini Program is called Toilet.

9. What did the cow say?

Cowsay is a command that shows a cow in ASCII characters in the terminal. With this command, you can control the cow to say what you want to say.

Don't worry about the sound, it only shows the text (just like you read comic books).

Cowsay Cowthink

Install cowsay:

Sudo apt install cowsay

After the installation is complete, you only have to type:

Cowsay "your text"

No matter what you put in double quotes, your cow will say! I see some system administrators use it to display daily messages. You can do that, too, and you can even combine it with the fortune command.

10. Flag

The banner command is similar to the toilet command, but it limits printing to a maximum of 10 characters.

You can install the banner command like this:

Sudo apt install sysvbanner

Then run it like this:

Banner "Welcome"

Replace the contents in double quotes and you will get the display content you want.

11 、 Yes

The yes command helps you automatically respond in the loop until the command is terminated. This command will print the same content all the time. If you want to generate a lot of junk text quickly, this command will work like a super button.

You can also use it to provide yes responses to commands (if prompted to answer). For example, the apt upgrade command will ask you to confirm that you can use it like this:

Yes | sudo apt upgrade

You don't need to install any packages, the yes command already exists.

To stop the yes command loop, simply press CTRL+C.

12. Get a new identity

Do you want to generate a random fake identity? I recommend you use the rig command. If you run it on the terminal, it will generate a false identity.

Install rig with this command:

Sudo apt install rig

Just enter it like this:

Rig

It may be used to display random information in scripts or web apps, but I haven't done anything myself.

The answers to the interesting Linux terminal commands are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report