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

How to transfer Linux and windows files

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

Share

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

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.

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