1. Software installation
1) Compile and install
After the root account is logged in, execute the following commands in sequence:
cd /tmp
wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
tar zxvf lrzsz-0.12.20.tar.gz && cd lrzsz-0.12.20
./configure && make && make install
The above installation process installs lsz and lrz into the /usr/local/bin/ directory by default. Now we can't use it directly. Let's create a soft link and name it rz/sz:
cd /usr/bin
ln -s /usr/local/bin/lrz rz
ln -s /usr/local/bin/lsz sz
2) yum installation
After logging in as root, execute the following command:
yum install -y lrzsz
2. Use instructions
The sz command sends the file to the local:
# sz filename
The rz command uploads files locally to the server:
# rz
After executing this command, select the file to upload in the pop-up box.
Note: Open the SecureCRT software -> Options -> session options -> X/Y/Zmodem to set the upload and download directories.