Linux (10) – Upload and download with RZ and SZ command

Take the CentOS 7 system as an example. Generally, upload and download use third-party tools, but it is not convenient to operate. You have to find the corresponding directory every time to perform upload and download operations. ,kind of hard.

The Linux system, for example, CentOS, can implement convenient file upload and download operations by installing plug-in tools.

The specific operation is installation

lrzsz-0.12.20.tar.gz< /p>

Prerequisite:

The current Linux system must have GCC++ and CC++ installed, otherwise the installation of lrzsz-0.12.20.tar.gz cannot be executed operate.

The specific operations are as follows:

File download or decompression:
After logging in with the root account, execute the following commands in sequence:
File download: wget https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz (download the installation package online)
① tar zxvf lrzsz-0.12.20.tar.gz
  cd lrzsz-0.12.20

Compile and install:
./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 them directly. Create a soft link below and name it rz/sz:
cd /usr/bin
ln -s /usr/local/bin/lrz rz
ln -s /usr/local/bin/lsz sz

share picture

How to use:

share pictureShare Image?

File download or unzip:
After logging in with the root account, execute the following commands in sequence:
File download: wget https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz (download the installation package online)
① tar zxvf lrzsz-0.12.20.tar.gz
  cd lrzsz-0.12.20

Compile and install:
./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 them directly. Create a soft link below and name it rz/sz:
cd /usr/bin
ln -s /usr/local/bin/lrz rz
ln -s /usr/local/bin/lsz sz

share picture

Leave a Comment

Your email address will not be published.