Install lrzsz offline and online under linux and use the sz rz command

Install lrzsz offline and online under linux and use the sz rz command

1. Install lrzsz online

Install lrzsz directly using yum:

yum -y install lrzsz

2. Install lrzsz offline

2. 1 Download and decompress the lrzsz installation package:

Download link: https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

Upload the file to any location on the server and decompress it

tar zxf lrzsz-0.12.20.tar.gz

Compile and install lrzsz
./configure --prefix is ​​to put all resource files in the path of /usr/local/lrzsz
make && make install is to compile and install

cd lrzsz-0.12.20
./configure –prefix=/usr/local/lrzsz
make && make install

Configure the environment variable of lrzsz and rename it. If you don’t configure it, you can only enter the /usr/local/lrzsz/bin/ path to execute lrzand lszcommands

cd /usr/bin
ln -s /usr/local/lrzsz/bin/lrz rz
ln -s /usr/local/lrzsz/bin/lsz sz

Verify that the installation is successful

Enter in any path rzand sz 某文件名
rzwhether you can upload files to the server and
szwhether you can download files to the local

3. What are rz and sz

rz, sz are command line tools for ZModem file transfer between Linux/Unix and Windows
sz: send selected server files to local
rz: upload local files to the server. It is
recommended that rz and sz are only used for uploading and downloading files that are not particularly large. File upload and download is a bit slow

Guess you like

Origin blog.csdn.net/qq_43853055/article/details/113739811