Every time you open a Linux virtual host, it is usually to complete the work. However, on an ordinary Linux host, there are thousands of developers developing software. can you ensure they are all so serious? Linux software has some interesting Easter eggs traditions. This article is mainly about
Every time you open a Linux virtual host, it is usually to complete the work. However, on an ordinary Linux host, there are thousands of developers developing software. can you ensure they are all so serious?
Linux software has some interesting Easter eggs traditions. This article mainly introduces some interesting commands and options to make your life more colorful. These are not all eggs, but I believe you will like them.
Text editor
Vim and Douglas Adams
Familiar with Douglas Adams (author of The Hitchhiker's Guide to the Galaxy Book), The vim editor has a helpful option that will give you plenty of praise.
If you have not installed vim. In Ubuntu/Debian, you can:
sudo apt-get install vim
In CentOS/Fedora, you can:
sudo yum install vim
Open vim in the command line:
vim
Run the following command to open a special help menu of vim:
:help 42
What is the meaning of life, the universe and everything? *42*Douglas Adams, the only person who knew what this question really was about isnow dead, unfortunately. So now you might wonder what the meaning of deathis…
If you want to exit vim, repeat this twice:
:q:q
Emacs games
The famous text editor, Emacs, is a versatile and well-known text editor except for the kitchen sink. it contains a lot of games that can be played directly in the editor. First, you have to install Emacs first. in Ubuntu/Debian, you can:
sudo apt-get install emacs
In CentOS/Fedora, you can:
sudo yum install emacs
Check this directory and you will find many games:
cd /usr/share/emacs/*/lisp/playls
5x5.elc decipher.elc gametree.elc meese.elc spook.elcanimate.elc dissociate.elc gomoku.elc morse.elc studly.elcblackbox.elc doctor.elc handwrite.elc mpuz.elc tetris.elcbruce.el dunnet.elc hanoi.elc pong.elc yow.elcbubbles.elc fortune.elc landmark.elc snake.elc zone.elccookie1.elc gamegrid.elc life.elc solitaire.elc
To run them, open Emacs first:
emacs
Press Esc key and x at the same time, and enter the name of the game you want to play:
Esc-xpong
To exit Emacs, press ctrl and x at the same time, and then press ctrl + c:
Ctrl-xCtrl-c
Apt command
Super Awesome apt-get
On Ubuntu and Debian, the apt-get package manager has been embedded with an egg for a long time.
If you enter an apt-get help command, you will receive the following prompt:
apt-get help
...-C =? Read this configuration file-o =? Set an arbitrary configuration option, eg-o dir: cache =/tmpSee the apt-get (8), sources. list (5) and apt. conf (5) manualpages for more information and options. this APT has Super Cow Powers. this APT is awesome.
If you see the prompt in the last line, this version of apt supports this egg. Enter another one:
apt-get moo
(__) (oo) /------\/ / | || * /\---/\ ~~ ~~ ...."Have you mooed today?"…
What about Aptitude?
Seeing the ambiguous relationship between apt-get and cattle, users may wonder if another apt tool, aptitude, also has this funny egg?
Let's try again as before:
aptitude help
...... -U Download new package lists on startup. (terminal interface only)-I Perform an install run on startup. (terminal interface only) This aptitude does not have Super Cow Powers. this aptitude is not awesome.
So disappointing. Try another method:
aptitude moo
There are no Easter Eggs in this program (this program has no Eggs ).
It's too straightforward. But persistence is important. Let's try again for more information:
aptitude -v moo
There really are no Easter Eggs in this program. (this program does not have any Eggs)
Again:
aptitude -vv moo
Didn't I already tell you that there are no Easter Eggs in this program? Didn't I tell you that this program has no eggs?
But if you keep adding v, you will eventually see this:
aptitude -vvvvv moo
All right, you win. okay, you? . /---- \ -------/\/| -----------------/--------\----------------------------------------------
However, this is not very similar. Let's add another v:
aptitude -vvvvvv moo
What is it? It's an elephant being eaten by a snake, of course. What is this? This is a snake swallowed an elephant)
Here we reference a sentence in Antoine de Saint-Exupéry's Little Prince.
Alternative parameters of common programs
There are also some strange parameters in some common programs, so you will be curious.
Use sudo to humiliate users
You can configure sudo (which is used to authorize a command) to humiliate users with wrong passwords.
To do this, first use the mongodo tool to edit the sudoers file. This tool is used to edit the sudo configuration file and verify the modification.
sudo visudo
Add the following line to the top of the file:
Defaults insults
Save and close the file.
Then, clear the password cache and enter the wrong password in the sudo command:
sudo -ksudo ls
[Sudo] password for demo: # enter an incorrect password Have you considered trying to match wits with a rutabaga? (Are you kidding me ,)? [Sudo] password for demo: My pet ferret can type better than you! (My Pet can beat you !) [Sudo] password for demo: Wrong! You cheating scum! (No! You are a liar !)
Nmap output of script kiddies
Nmap is a network detection tool that can be used for system security checks.
Install it on Ubuntu/Dedian:
sudo apt-get install nmap
In CentOS/Fedora:
sudo yum install nmap
Nmap provides such an option to output data in the format of "script kiddies.
Let's first look at the normal format and use Nmap to check its own website:
nmap scanme.nmap.org
Starting Nmap 5.21 ( http://nmap.org ) at 2013-09-18 17:43 UTCNmap scan report for scanme.nmap.org (74.207.244.221)Host is up (0.072s latency).Not shown: 998 closed portsPORT STATE SERVICE22/tcp open ssh80/tcp open httpNmap done: 1 IP address (1 host up) scanned in 1.40 seconds
Let's add an option to adjust the output format:
$tart|ng NMap 5.21 ( http://Nmap.org ) at 2013-09-18 17:45 UTCNmap $cAn r3p0rt F0r scanM3.nmaP.oRg (74.207.244.221)Ho$t 1z Up (0.071z laT3ncy).Not sh0wN: 998 cl0$Ed p0rt$POrT ST4TE $ERV!C322/tcp opEn Ssh80/tcP 0p3n HtTpNmap d0n3: 1 iP AddrESz (1 h0$t Up) $canNed !n 1.34 secondz
In fact, it replaces the original characters with seemingly similar characters to make the results look more "hacker fan.
Command line Star Wars
There are two online versions of command line Star Wars in the terminal.
Use telnet to watch the ASCII version of Star Wars
Simon Jansen, Sten Spans, and Mike Edwards use ASCII to simulate a complete Star Wars video. you can use telnet to watch it. First, download telnet if it is not installed. it is a pioneer in ssh:
On Ubuntu/Debian:
sudo apt-get install telnet
On CentOS/Fedora:
sudo yum install telnet
Then you only need to connect to the correct server:
telnet towel.blinkenlights.nl
/~\ R2-D2! |oo ) Where are you? # _\=/_ # \\ / _ \ // \\//|/.\|\\// \/ \_/ \/ |\ /| \_ _/ | | | | | | []|[] | | | _______________________________/_]_[_\_____________________________
If you don't want to read it, press ctrl +]. There will be a prompt, and you can enter "close:
Ctrl-]close
Star Wars traceroute
Another gift was delivered by Ryan Werber, who named all the nodes on the network as special addresses.
If you run traceroute, a program that tracks the path from the network package to a remote machine, you will see the introduction of Star Wars on the network node name.
Just think about it:
traceroute -m 254 -q1 obiwan.scrye.net
Route information is generated constantly. After several hops, a miracle occurred:
. . .. . .15 Episode.IV (206.214.251.1) 77.506 ms16 A.NEW.HOPE (206.214.251.6) 87.194 ms17 It.is.a.period.of.civil.war (206.214.251.9) 77.699 ms18 Rebel.spaceships (206.214.251.14) 78.171 ms19 striking.from.a.hidden.base (206.214.251.17) 87.624 ms20 have.won.their.first.victory (206.214.251.22) 86.249 ms21 against.the.evil.Galactic.Empire (206.214.251.25) 77.505 ms22 During.the.battle (206.214.251.30) 85.622 ms23 Rebel.spies.managed (206.214.251.33) 78.121 ms24 to.steal.secret.plans (206.214.251.38) 77.049 ms. . .. . .
After the introduction to screen 4, 5, and 6, Ryan began to entertain himself:
99 Were.no.strangers.to.love (206.214.251.206) 77.472 ms100 You.know.the.rules.and.so.do.I (206.214.251.209) 78.054 ms101 A.full.commitments.what.Im.thinking.of (206.214.251.214) 78.512 ms102 I.just.wanna.tell.you.how.Im.feeling (206.214.251.217) 79.884 ms103 Gotta.make.you.understand (206.214.251.222) 79.427 ms104 Never.gonna.give.you.up (206.214.251.225) 77.032 ms105 Never.gonna.let.you.down (206.214.251.230) 78.909 ms106 Never.gonna.run.around.and.desert.you (206.214.251.233) 80.286 ms
Purely fun programs
Some programs you don't need, but sometimes they can pass the time.
Spelling mistake learning
If you want to use ls to list the files in the directory, but then you may want to install the sl program.
On Ubuntu/Debian:
sudo apt-get install sl
On CentOS/Fedora:
sudo yum install sl
Now, if you accidentally think of sl, you will be happy:
sl
( ) (@@) ( ) (@) () @@ O @ O @ (@@@) ( ) (@@@@) ( ) ==== ________ ___________ _D _| |_______/ \__I_I_____===__|_________| |(_)--- | H\________/ | | =|___ ___| _________________ / | | H | | | | ||_| |_|| _| \___ | | | H |__--------------------| [___] | =| | ________|___H__/__|_____/[][]~\_______| | -| |/ | |-----------I_____I [][] [] D |=======|____|______________________ __/ =| o |=-~~\ /~~\ /~~\ /~~\ ____Y___________|__|________________________ |/-=|___|=O=====O=====O=====O |_____/~\___/ |_D__D__D_| |_D__D__D \_/ \__/ \__/ \__/ \__/ \_/ \_/ \_/ \_/ \
There will be a train whistling over.
Cowsay and Fortune
If you want to play with something simple, and apt cannot satisfy you, you can try cowsay and fortune.
On Ubuntu/Debian:
sudo apt-get install fortune cowsay
On CentOS/Fedora:
sudo yum install fortune cowsay
Cowsay uses ASCII to draw a cow. you can say what you enter.
cowsay "hello, I'm a cow”
__________________< hello, I'm a cow > ------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
The fortune program will talk about quotations, routes, jokes, or nonsense. these can be passed to the cowsay program:
cowsay "hello, I'm a cow”
________________________________________/ Q: What looks like a cat, flies like a \| bat, brays like a donkey, and || |\ plays like a monkey? A: Nothing. / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
If you are not familiar with Niu, you can switch to another role:
fortune | cowsay -f tux
_____________________________________/ You never know how many friends you \| have until you rent a house on the |\ beach. / ------------------------------------- \ \ .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/
To know which roles cowsay supports, enter the following:
cowsay -l
Cow files in /usr/share/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-koalamech-and-cow meow milk moofasa moose mutilated pony pony-smaller ren sheepskeleton snowman sodomized-sheep stegosaurus stimpy suse three-eyes turkeyturtle tux unipony unipony-smaller vader vader-koala www
I personally prefer Jianlong:
fortune | cowsay -f stegosaurus
_________________________________________/ Q: What lies on the bottom of the ocean \\ and twitches? A: A nervous wreck. / -----------------------------------------\ . . \ / `. .' " \ .---. < > < > .---. \ | \ \ - ~ ~ - / / | _____ ..-~ ~-..-~ | | \~~~\.' `./~~~/ --------- \__/ \__/ .' O \ / / \ " (_____, `._.' | } \/~~~/ `----. / } | / \__/ `-. | / | / `. ,~~| ~-.__| /_ - ~ ^| /- _ `..-' | / | / ~-. `-. _ _ _ |_____| |_____| ~ - . _ _ _ _ _>
Summary
This article will not teach you any important knowledge or improve your Linux level, but hope you can relax a little and explore your system more if possible.
Https://www.digitalocean.com/community/articles/top-10-linux-easter-eggs: