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-release2. 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-release2. Install the train command
sudo yum install sl
3. Run
sl
3. The Matrix Code Rain
Implement code
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
cmatrixPS: 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 9cmatrix -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 cowsay3. 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.