Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to transfer Linux and windows files

Shulou Source: shulou.com Published: 2022-06-01 03:16:38 10月01日 Update

In this issue, the editor will bring you about how to transfer Linux and windows files. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

There are many ways to transfer files between Linux systems, and this blog introduces two of them. It is also often used in the development process.

In general, individuals often? Go to the rz or sz command to upload and download files.

Rz sz upload and download

Install rz,sz, the operation is very simple.

Yum install lrzsz

After installation, you can perform basic upload and download operations:

Execute rz through SecureCRT to upload.

[root@iZ25ltqcjzrZ ~] # rz

A pop-up window will pop up and choose to upload the file and wait for it to be finished. Of course, rz also has some parameters, such as general use:

Rz-bey

Scp transfers files

Due to some server security considerations, rz software is not allowed to be installed, so we have to use scp transmission. Scp? The operation command is actually very simple.

Transfer the local files to the specified path to the target server:

# File copy

$scp local_file remote_username@remote_ip:remote_folder

# Directory replication

$scp-r local_folder remote_username@remote_ip:remote_folder

Local_file is the local file, the login name of the remote_username target server, the password of the remote_ip target server, and the target path under the remote_folder target server.

Cp the remote file locally:

$scp remote_username@remote_ip:remote_file local_folder

Compare the local cp to the remote server, just swapping the destination with the source.

SFTP

SecureCRT can enter sftp connection mode through the shortcut key Alt+p.

Download a file

Absolute path of sftp > get file

Look at the path downloaded to the local and get the path to download to the local

Sftp > lpwd

Upload files:

Sftp > put absolute path for local files

The above is the editor for you to share how to transfer Linux and windows files, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Files transfers servers targets paths services uploads and downloads content commands analysis security professional personal small and medium between rich in content blogs parameters just can be passed through Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology macOS NVidia Microsoft