forked from openkylin/docs
add en/Development-And-Common-Documents/Linux_Facts20_About_Terminals.md.
Signed-off-by: 康艳红 <731193006@qq.com>
This commit is contained in:
parent
7012dd3276
commit
719405d385
|
@ -0,0 +1,225 @@
|
|||
# <center>20 interesting facts about Linux commands and Linux terminals</center>
|
||||
#### <center>author: Little K</center>
|
||||
#### <center>2022-04-22 23:36:00</center>
|
||||
|
||||
Playing Linux its fun! Haha. Don't believe it. Mark my words and by the end of the article you'll be convinced that Linux is indeed fun.
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl0.png)
|
||||
### Command: sl (steam locomotive)
|
||||
You probably know the 'ls' command and use it a lot to see the contents of folders. However, there are times when you might spell it 'sl', so how do we have some fun instead of seeing "command not found"?
|
||||
Install sl
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl1.png)
|
||||
Output
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl2.png)
|
||||
! [](https://www.ubuntukylin.com/upload/images/t13.png)
|
||||
This command will also run when you type 'LS' instead of 'ls'.
|
||||
|
||||
### Command: telnet
|
||||
|
||||
NOT ALSO! Feh!!! This is not as complicated as it usually is. You are probably familiar with telnet. telnet is a text-based, two-way network protocol. There is nothing to install here. All you need is a Linux system and a connected network.
|
||||
! [](https://www.ubuntukylin.com/upload/images/t14.png)
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl5.png)
|
||||
|
||||
### Command: fortune
|
||||
|
||||
Try your unknown luck, there is sometimes fun in the terminal.
|
||||
|
||||
Install fortune
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl6.png)
|
||||
|
||||
### Command: rev (flip)
|
||||
|
||||
It will reverse every string passed to it, isn't that fun.
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl7.png)
|
||||
|
||||
### Command: factor
|
||||
|
||||
It's time to talk a bit about Mathematics, this command outputs all the factors of a given number.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl8.png)
|
||||
|
||||
### Command: script
|
||||
|
||||
Okay, this is not a command, it's a script, a very interesting script.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl9.png)
|
||||
|
||||
### Command: Cowsay
|
||||
|
||||
A cowsay that is composed in ASCII at the terminal, this cowsay will say what you want it to say.
|
||||
|
||||
Install Cowsay
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl10.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl11.png)
|
||||
|
||||
What happens if you redirect the 'fortune command' command to cowsay using a pipe?
|
||||
|
||||
root@tecmint:~# fortune | cowsay
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl12.png)
|
||||
|
||||
Hint: '|' is the pipe command character. Usually it takes the output of one command as the input of the next command. In the above example the output of 'fortune' is used as the output of the 'cowsay' command. The pipe command is often used in scripting and program writing.
|
||||
|
||||
xcowsay is a graphical interface program. It is similar to cowsay only expressed in a graphical way, so to speak, and is the X version of cowsay.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl13.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl14.png)
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl15.png)
|
||||
|
||||
cowthink is another command. Run "cowthink Linux is sooo funny" to see how it differs from cowsay.
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl16.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl17.png)
|
||||
|
||||
### Command: yes
|
||||
|
||||
yes is a very interesting and useful command, especially for scripters and system administrators, to automatically generate predefined responses or pass them to the terminal.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl18.png)
|
||||
|
||||
Tip: (it doesn't stop until you press ctrl+c)
|
||||
|
||||
### Command: toilet
|
||||
|
||||
What? Are you kidding me! Of course not, but for sure the name of this command is so screwed up that I don't know where it came from.
|
||||
|
||||
Install toilets
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl19.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl20.png)
|
||||
|
||||
This command even provides some color and font formatting.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl21.png)
|
||||
|
||||
Tip: Figlet is another command that produces a similar effect as toilet.
|
||||
|
||||
### Command: cmatrix
|
||||
|
||||
You probably watched the Hollywood movie 'The Matrix' and reveled in the ability given to Neo to see anything in the matrix, or maybe you have a vivid picture of a desktop similar to 'Hacker' in mind.
|
||||
|
||||
Install cmatrix
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl23.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl24.png)
|
||||
|
||||
### Command: oneko
|
||||
|
||||
If you are convinced that the Linux mouse pointer will always be the same black or white color and not at all vivid, you are wrong. "oneko" is a package that will make a "Jerry" your mouse pointer attached to your mouse.
|
||||
|
||||
Install oneko
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl25(1).png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl26.png)
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl27.png)
|
||||
|
||||
Hint: When you close the terminal with oneko running, Jerry will disappear as well, and will not come back when you restart the terminal. You can add this program to the startup options and continue using it.
|
||||
|
||||
### Fork bomb
|
||||
|
||||
This is a very poorly written piece of code. You are responsible for the consequences of running this command. It will multiply exponentially until all system resources are used or the system hangs (to see the power of this command you can try it once, but at your own risk, remember to close and save all other programs and files before running it).
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl28.png)
|
||||
|
||||
### Command: while
|
||||
|
||||
The "while" command below is a script that gives you the date and file in color until you press the break key (ctrl+c). Copy and paste this command into your terminal.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl29.png)
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl30.png)
|
||||
|
||||
Hint: The above script will produce similar output with the following modifications but it's still a bit different, so try it in your terminal.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl31.png)
|
||||
|
||||
### Command: espeak
|
||||
|
||||
Turn up the volume of your multimedia speakers, then copy this command to your terminal and see how you react when you hear the voice of God.
|
||||
|
||||
Install espeak
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl32.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl33.png)
|
||||
|
||||
### Command: aafire
|
||||
|
||||
How about setting fire to your terminal. Type this "aafire" into your terminal without any quotes and see the magic. Press any key to middle finger the program.
|
||||
|
||||
Install aafire
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl34.png)
|
||||
|
||||
Output
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl35.png)
|
||||
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl36.png)
|
||||
### Command: bb
|
||||
|
||||
First install "apt-get install bb", then type in "bb" and see what happens.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl37.png)
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl38.png)
|
||||
|
||||
### Command: url
|
||||
|
||||
Wouldn't it be cool to change your twitter status in front of your friends using the command line. Replace username, password and "your status message" with your username, password and your desired status respectively.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl39.png)
|
||||
|
||||
### ASCIIquarium
|
||||
|
||||
Want to get an aquarium in the terminal that, how?
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl40.png)
|
||||
|
||||
### Install ASCIIquarium
|
||||
|
||||
Download and install ASCIIquarium.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl41.png)
|
||||
|
||||
Finally, run "asciiquarium" or "/usr/local/bin/asciiquarium" in the terminal, without quotes, and the magic will unfold before your eyes.
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl42.png)
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl43.png)
|
||||
### Command: funny manpages
|
||||
First install "apt-get install funny-manpages" and then run the following command from the manpages manual. Some of the
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl44.png)
|
||||
|
||||
### Linux Tweaks
|
||||
It's time to do some optimization
|
||||
|
||||
! [](https://www.ubuntukylin.com/upload/images/tl45.png)
|
||||
|
||||
Linux is always sexy: who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep (if you know what I mean, sweat!)
|
||||
|
||||
There are some other commands that just don't work on all systems, so they are not covered in this article. For example, dog , filter, banner
|
||||
|
||||
Have fun, you can say thank you to me later :)
|
Loading…
Reference in New Issue