Example of rz and sz installation and usage under Linux
- 2020-10-23 21:18:35
- OfStack
The new cloud server does not support upload and download with SecureCRT. The rz command was not found. Record how to install the rz/sz command.
1. Description of tools
In ssh login software like SecureCRT, upload/download files by typing the rz/sz command into the Linux interface. For some VERSIONS of linux, rz/sz is not installed by default and requires manual installation.
sz: Send the selected file (send) to the local machine;
rz: Running this command will bring up a file selection window to upload from the local selection file to the server (receive).
Download the installation package lrzsz - 0.12.20. tar. gz: http: / / www ohse. de uwe/software/lrzsz html
2. Software installation
First, upload the installation file to the tmp directory via the sftp tool.
# 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 process installs lsz and lrz to /usr/local/bin/ directory by default. The following soft link is created and named rz/sz:
# cd /usr/bin
# ln -s /usr/local/bin/lrz rz
# ln -s /usr/local/bin/lsz sz
3. Instructions
Open SecureCRT -
>
Options -
>
session options -
>
Under X/Y/Zmodem, you can set the directory for uploading and downloading; Then when you log on to the linux terminal with SecureCRT:
# sz filename ( Send the file to the client ,zmodem The reception can start itself )
# rz ( Upload files from the client to linux The service side )
The rz command can also be uploaded using UI in SecureCRT.
4. It can also be installed using yum
#yum install lrzsz
Ok, so you can use SecureCRT to upload and download files.