Install rz/sz command and usage instructions under Linux system

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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325980471&siteId=291194637