Super cool code in linux

This code only applies to centos!

1. Linux logo: A big monster will appear

 Implement command

1. You need to install the epel-release source
    yum install -y epel-release

2. Install the linux_logo command

        sudo yum install linux_logo

3. Run

        linux_logo

 2. Small train: A train whizzing by.

Implement code

1. You need to install the epel-release source (if you have installed this dependency above, you do not need to install it this time)
    yum install -y epel-release

2. Install the train command

        sudo yum install sl

3. Run

        sl

 3. The Matrix Code Rain

Implement code 

Compressed package cloud disk link: Baidu Cloud Disk Please enter the extraction code Baidu Cloud Disk provides you with network backup, synchronization and sharing services for files. Large space, fast speed, safe and stable, supports education network acceleration, and supports mobile phones. Register to use Baidu Netdisk to enjoy free storage space icon-default.png?t=N7T8https://pan.baidu.com/s/1FOXSCxinc_2xrCBbKfYDuQ?pwd=asdf

cmatrix: The string rain in the movie "The Matrix".
The effect achieved: In the movie "The Matrix", the string rain appears on the computer screen.

Installation
1. Install dependencies (required when compiling)

yum -y install ncurses* gcc gcc-c++

2. After uploading the compressed package, unzip the file in the directory where the compressed package is located.

tar zxvf cmatrix-1.2a.tar.gz -C /usr/src/

3. Enter the decompressed directory, the directory used in the example /usr/src/cmatrix-1.2a, configure & compile
cd /usr/src/cmatrix-1.2a

./configure && make && make install

4. Run
cmatrix

PS: Press the following buttons during operation and the effects that can be achieved

Change the font brightness
a B bn
change the font color
! @ # $
change the speed
0 1 2 3 4 5 6 7 8 9

cmatrix -help

4. Talking cow 

Implement code

1. Dependency
requires epel-release source (already installed, no need to install)

yum install epel-release
2. Install
yum -y install cowsay

3. Run
cowsay "hello world"

 ps: If the yum installation command is too slow to download, you can change the download source. If there is a permission problem, you can switch the user to root or add sudo before executing the command.

Guess you like

Origin blog.csdn.net/weixin_53083884/article/details/132627532