No.1 sl
I believe everyone has used the ls command, but what will be the effect if you accidentally type sl on the Linux command line?
Of course it may be this effect, let's install it and try it.
mgm@ubuntu:~$ sl
The program 'sl' is currently not installed. You can install it by typing:
sudo apt install sl
Ok? Prompt error
mgm@ubuntu:~$ sudo apt-get install sl
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
This situation is because apt is running, check the situation
mgm@ubuntu:~$ ps afx|grep apt
677 ? Ss 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily
2362 pts/0 S+ 0:00 \_ grep --color=auto apt
2118 ? SNl 0:00 /usr/bin/python3 /usr/sbin/aptd
kill them
mgm@ubuntu:~$ sudo kill -9 677
mgm@ubuntu:~$ sudo kill -9 2362
mgm@ubuntu:~$ sudo kill -9 2118
Then continue to download and install.
After installation, enter sl, Oh yeah ~ a steam locomotive whizzes by
No.2 Star Wars
I believe everyone hasn't seen a movie for a long time, right? You probably have never seen the ASCII version of the movie. Let’s enjoy the free ASCII version of Star Wars online.
When the Internet first started, the telnet version of the BBS forum was quite popular. Today, let’s experience it.
mgm@ubuntu:~$ telnet towel.blinkenlights.nl
Wait a moment, after the letters, the excitement continues.
Remember, the exit is "Ctrl+]", and then enter quit at the telnet prompt
No.3 Cowsay
Talking cow!
Let's enter root user mode first
sudo passwd root
Then enter the root password twice in a row
mgm@ubuntu:~$ sudo su
root@ubuntu:/home/mgm#
root@ubuntu:/home/mgm# apt-get install cowsay
root@tecmint:~# cowsay I Love Linux
Many animals can talk, see who they are
root@ubuntu:/home/mgm# cowsay -l
Cow files in /usr/share/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 flaming-sheep
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
Of course we can also add gradient effects.
Bring the lolcat parameter behind
root@ubuntu:/home/mgm# cowsay -f turtle "haha" | lolcat
The program 'lolcat' is currently not installed. You can install it by typing:
apt install lolcat
Prompt lolcat is not installed, then install it
root@ubuntu:/home/mgm# apt install lolcat
Then this effect
can be applied to many fields, such as inputting the ls command to make your work a little bit fun.
root@ubuntu:cal | lolcat
No.4 Cmatrix
Want to try the effect in The Matrix?
root@ubuntu:/home/mgm# apt-get install cmatrix
Execute after download
root@ubuntu:/home/mgm# cmatrix
Exit press Ctrl+C
No.5 Oneko
Come with an elf to accompany you
root@tecmint:~# apt-get install oneko
After downloading, execute
root@tecmint:~# oneko
exit Ctrl+C
No.6 Fortune
Apart from typing the code, you will test your life from time to time? Some bowls of chicken soup
apt-get install fortune
root@ubuntu:/home/mgm# fortune
You are only young once, but you can stay immature indefinitely.
With a little effect
No.7 figlet
Tired of a font? Get a big one!
root@ubuntu:/home/mgm# apt-get install figlet
In addition to figlet, there is also a toilet
No.8 wttr.in
Want to know the weather forecast in time?
root@ubuntu:/home/mgm# curl wttr.in
Of course, you can look at the weather in the capital Beijing
root@ubuntu:/home/mgm# curl wttr.in/beijing
No.9 linuxlogo
root@ubuntu:/home/mgm/gtop# sudo apt install linuxlogo
Execute directly after installation
root@ubuntu:/home/mgm/gtop# linux_logo
You can view the number of logos supported by the system
root@ubuntu:/home/mgm/gtop# linux_logo -f -L list
Then specify to display a certain
root@ubuntu:/home/mgm/gtop# linux_logo -f -L 4
Or show it in a loop
root@ubuntu:/home/mgm/gtop# for i in {
1..30};do linux_logo -f -L $i;sleep 2;done
No.10 Asciiquarium
If you are tired after trying so much, feed the fish and rest.
root@tecmint:~# cd /tmp
root@tecmint:~# wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
root@tecmint:~# tar -zxvf asciiquarium.tar.gz
root@tecmint:~# cd asciiquarium_1.1/
root@tecmint:~# cp asciiquarium /usr/local/bin
root@tecmint:~# chmod 0755 /usr/local/bin/asciiquarium
root@tecmint:~# asciiquarium
If this method prompts an error in the second step, then try the following
root@ubuntu:/tmp# apt-get install asciiquarium
Then execute
root@ubuntu:/tmp# asciiquarium
nice!