For those who often use Linux systems, it is indispensable to upload local files to the server or download files from the server to the local, rz/sz The command is very convenient to help us realize 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.
This method must ensure that the machine can access the Internet. After logging in to the system with the root account, 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 installs lsz and lrz to the /usr/local/bin/ directory by default. Now we cannot use it directly. Create a soft connection below and name it rz/ sz
cd /usr/bin ln -s /usr/local/bin/lrz rz ln -s /usr/local/bin/lsz sz
This installation method must help you have the yum source on your machine before you can install it. Use the root user to log in to the system. Execute the following command:
yum install -y lrzsz
sz command is to send files to the local
# sz test.txt
rz command is to upload local files to the server
# rz
The above is the detailed content of Tutorial and usage instructions for installing rz/sz command under Linux system. For more information, please follow other related articles on the PHP Chinese website!