Home  >  Article  >  Operation and Maintenance  >  Tutorial and usage instructions for installing rz/sz command under Linux system

Tutorial and usage instructions for installing rz/sz command under Linux system

巴扎黑
巴扎黑Original
2017-07-17 15:51:523576browse

Installing rz/sz commands and usage instructions under Linux system

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.

1. Software installation

1. Compile and install (Method 1)

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

2. yum installation (method 2)

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

2. Instructions for use

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn