Use RZ and sz to upload and download files under Linux

Source: Internet
Author: User
First, installation method

[Email protected] code]# yum-y install Lrzsz


Second, upload download file test

1, conditions: Need to use SECURECRT or Xshell and other client tools to connect Linux

2. Upload Download command test


1) Upload (RZ)

Run the RZ command at the client SSH command line, with the following command:

[Email protected] code]# RZ


After the execution of the upload file will pop up the selection window, you can choose to upload the relevant files (not supported directly upload directory).

Tip: You can use the RZ-Y implementation overlay upload, the default directory of the upload window can be set in the SSH client.


2) Download (SZ)

Implementation downloads can be directly using szFileName, where filename is the name of the file you want to download, and if the directory needs to be packaged into a single file in the implementation download.

[[Email protected] code]# sz backup_file.py #<==backup_file.py to exist, can be a relative path or an absolute path.

Upload Download directory securecrt default is the Upload/download directory under the installation directory, can be modified by itself.

Xshell is set in file-----------and file transfer, which is asked before downloading by default.


Use RZ and sz to upload and download files under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.