Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using SecureCRT to upload and download files in Linux how to use sz and rz

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you the "Linux use SecureCRT upload, download file commands sz and rz how to use", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Linux upload and download files using SecureCRT commands sz and rz how to use" this article.

Among them, I use the following methods to understand and remember sz and rz (because it is easy to be confused in many cases):

S in sz means send, which tells the client that I (the server) want to send the file send to cilent, which is equivalent to the client downloading.

R in rz means received, which tells the client that if I (the server) want to receive the file received by cilent, it is tantamount to the client uploading.

Note: the sz and rz commands need server support, if prompted without a command:

The code is as follows:

-bash: rz: command not found

-bash: sz: command not found

You can install with yum (Centos as an example):

The code is as follows:

Yum install lrzsz-y

Here is a specific example to illustrate the use of sz and rz:

Sz usage (running the command sz is much more convenient than the ftp command, and the server does not need to open a separate FTP service):

The code is as follows:

# download a file

Sz filename

# download multiple files

Sz filename1 filename2

# download all files in the dir directory, excluding folders under dir

Sz dir/*

The location of the download file needs to be set in securtCRT, as shown below:

Rz usage:

After the command terminal enters rz enter, a file selection dialog box appears to select the files to be uploaded. Multiple files can be specified at a time, and the path to the server is the directory where the rz command is currently executed.

Note: using rz alone will have two problems: upload interruption, upload file changes (md5 is different), the solution is to upload using rz-be, and uncheck the box before "Upload files as ASCII" in the pop-up dialog.

-b binary uploads and downloads in the way of binary and does not interpret the character as ascii

-e forces all escape control characters, such as Ctrl+x,DEL, etc.

The above is all the contents of this article "how to use SecureCRT to upload and download files in Linux how to use sz and rz". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report