This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14550|Reply: 0

[linux] Use XShell to upload and download files to centos

[Copy link]
Posted on 8/29/2016 3:17:31 PM | | | |


Centos installation command: yum install -y lrzsz

With XShell, you can easily download files from the server locally using the linux command sz, and use the rz command to upload local files to the server.

    Among them, I used the following method for understanding and memorizing SZ and RZ (often easy to confuse):

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

    The r in rz means received, telling the client that I (the server) want to receive the file received by cilent, which is equivalent to the client uploading.

    Remember that both sent and received actions are initiated on the server. We are used to saying upload or download, but in fact, it is not necessary. With these two commands, just think about whether you want to send the file out of the server or receive it from the client.

    If you want to upload a file from the client to the server, the server will receive the file back, and the logic is: I (the client) upload, you (the server) receive, using rz.

    If you want to download the file from the server (to the client), the server will send the file, the logic is: I download (client), you (the server) send, using sz.

    Well, to sum it up in one sentence:
    I (client) upload, you (server) receive (RZ), I download (client), you (server) send (SZ).




Previous:Does windows2008 R2 come with .NET framework 4.0?
Next:vs2013 svn commit project Access to '/svn/' forbidden
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com