Detailed use of rz and sz commands in Linux

  
        

rz, sz is a command-line tool for Linux/Unix and Windows for ZModem file transfer.

The advantage is that you don't need to open a sftp tool to log in and upload the downloaded file.

sz: Send the selected file to the local machine rz: Run this command will pop up a file selection window, upload the file from the local selection to the Linux server

Installation command: < Br>

yum install lrzsz

Sending files from the server to the client:

sz filename

Uploading files from the client to the server:

rz

Select the file in the pop-up box. The user and group that uploaded the file are the currently logged in users

SecureCRT sets the default path:

Options -> Session Options -> Terminal -> Xmodem/Zmodem ->Directories

Xshell Set Default Path:

Right-Click Session-> Properties-> ZMODEM -> Receive Folder

Test: The development board receives the file: 1. Enter the directory where the development board wants to receive the file. 2. Development board execution command # rz 3. Under minicom, hold down the Ctrl+A key and press the Z key. Press the S key to select the send file. 5. Select zmodem and confirm with the Enter key. 6. Use the space to select the file to be sent by the host and confirm with the Enter key. 7. After the transfer is complete, press any key to return to

The development board sends the file: 1. Enter the directory where the development board wants to send the file 2. Enter the directory where the host wants to receive the file 2. Host execution command # rz 3. Development board execution command # sz filename

PS: Colleague And I said that SecureCRT can easily upload and download files, but Xshell does not. I checked the Internet and used the same sz/rz tool. There is no menu selection under Xshell to lose the command.

Copyright © Windows knowledge All Rights Reserved