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

巴扎黑
Release: 2017-07-17 15:51:52
Original
3582 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

2. Instructions for use

sz command is to send files to the local

#  sz  test.txt
Copy after login

rz command is to upload local files to the server

#   rz
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template