Use securecrt upload, download file command in Linux sz and RZ usage examples

Source: Internet
Author: User
Tags control characters

With SECURTCRT, using the Linux command sz can easily download files on the server to the local, using the RZ command is to upload local files to the server which, for SZ and RZ understanding and memory I used the following method (because many times easy to confuse):
The s in SZ mean Send (send), tell the client, I (server) to send the file send to Cilent, is equivalent to the client in the download.
RZ in R means received (receive), tell the client, I (server) to receive files received by Cilent, is equivalent to the client in the upload.

Note: The SZ and RZ commands require server support, if prompted without a command: can be installed with Yum (CentOS for example): Yum install lrzsz-y Use the following examples to illustrate the use of SZ and RZ:SZ usage (Run command sz is more convenient than FTP command, and the server does not need to open FTP service): #下载一个文件
SZ filename
#下载多个文件
SZ filename1 filename2
#下载dir目录下的所有文件, does not contain a folder under Dir
SZ dir/* Here I use SECURECRT, specific changes rz upload/sz Download The default path method: Right-click the current session, sessions, Options, Terminal, Xmodem/zmod EM->directories:upload: The path you want to set download: The path you want to set RZ Usage:After entering RZ enter in the command terminal, the file selection dialog will appear, select the file to be uploaded, specify multiple files at one time, and upload the path to the server as the directory of the currently executing RZ command. Note: Using RZ alone will have two problems: Upload interrupt, upload file changes (MD5 different), the solution is to upload is rz-be, and remove the popup dialog box "Upload files as ASCII" before the check.
-b binary uploads the download in binary mode, does not interpret the character as ASCII
-e forces escape all control characters, such as Ctrl+x,del.

Use securecrt upload, download file command in Linux sz and RZ usage examples

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.