The Linux RZ command and the SZ command use the detailed encyclopedia _linux Shell

Source: Internet
Author: User
Tags control characters file upload mongodb postgresql redis


SZ command


Use description: The SZ command is to use the Zmodem protocol to transfer files from the Linux server to the local, one or more files can be transmitted at a time. The corresponding to upload files from the local to the Linux server, you can use the RZ command.



Common parameters


-A is transmitted (ASCII) in text mode.



-B is transmitted in binary mode (binary).



-e pairs the control character escape (escape), which guarantees that the file transfer is correct.



If you can determine that the file being transferred is in text format, use sz-a files



If it is a binary file, use sz-be files



RZ command


-B in binary mode, default to text mode. (Binary (Tell it as it is) file transfer override.)



-E escapes all control characters. (Force sender to escape the all control characters; Normally XON, XOFF, Dle, CR-@-CR, and Ctrl-x are escaped.)



If you want to ensure that the uploaded file contents are consistent with the original file after the server side is saved, it is best to set both flags, as shown in the following ways:



rz-be



When this command executes, it pops up the File selection dialog box, selects the files that need to be uploaded, and then starts uploading the process. The speed of the upload depends on the state of the network at that time.



If the execution shows "0 errors", the file upload succeeds, and the other display indicates that there is a problem with the file upload.



Rz,sz is a command-line tool for Linux/unix Zmodem file transfer with Windows.



The advantage is that there is no need to open a sftp tool to upload the download file.



SZ: Sends the selected file (send) to the local machine



RZ: Running this command pops up a file selection window and uploads it to the Linux server from the local selection file



Install Command:


Yum Install Lrzsz



Sending files from the server to the client:



SZ filename



Uploading files from client to server:



Rz


Select the file in the pop-up box, and the user and group that uploaded the file are the currently logged on user



SECURECRT Set the default path:



Options-> session Options-> Terminal-> xmodem/zmodem->directories



Xshell Set the default path:



Right-click Session-> Property-> ZMODEM-> receive folder



Test:



The Development Board receives files:



1. Access to the directory of the Development Board to receive files
2. Development Board Execution Command # RZ
3. Under Minicom, hold down CTRL + a key and press the Z key
4. Press the S key to select Send File
5. Select Zmodem and confirm with enter key
6. Use a space to select the host to send the file, with the ENTER key to confirm
7. Press any key to return after transmission completes



Development Board to send files:



1. Access to the Development Board directory to send files
2. Access to the host to receive files directory
2. Host Execution Command # RZ
3. Development Board Execution Command # SZ filename



PS: Colleagues and I said securecrt can easily upload the download file, and Xshell did not. I surf the internet to check the original use of the same Sz/rz tool, Xshell under no menu to select the command to be lost.


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

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.