Linux system installation rz and sz command and instructions of details

  • 2020-05-14 05:47:18
  • OfStack

For people who use Linux a lot, it is necessary to upload local files to the server or download files from the server to the local. rz/sz is very convenient for us to achieve this function, but many Linux systems do not initially have these two commands.

Today, we will briefly explain how to install and use the rz and sz commands in 1.

1. Software installation

After logging in the root account, execute the following commands in turn:


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 installed lsz and lrz into /usr/local/bin/ directory by default. Now we can't use them directly. Below, 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. Instructions for use

The sz command sends files locally:

# sz filename

The rz command locally uploads files to the server:

# rz

After executing the command, select the file you want to upload in the pop-up box.

Note: open SecureCRT software - > Options - > session options - > You can set up directories for uploading and downloading under X/Y/Zmodem.


Related articles: