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

What is the solution for efficient transfer of large files in Linux system

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

Share

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

In this issue, the editor will bring you what is the solution for efficient transfer of large files in the Linux system. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Want to transfer files in the Linux system can use tools such as rsync, scp, but these two tools have a common disadvantage is that the transfer speed is slow, if the transfer of large files these two tools are very inefficient, the following Linux system to share the efficient transfer of large files.

Nc sends and receives data

Receiving end:

Nc ``- l``45.55.0.86 9999 > jieshou.iso ➤-l: listen to a port to receive data ➤-u: use UDP instead of TCP for data connection (it should be faster, no try)

The meaning of the whole command: open port 9999 locally to receive data and store the received data in the "jieshou.iso" file.

Sender:

The first time of the time nc 45.55.0.86 9999 command is used to detect the time it takes for the command to run. A 2077m file was uploaded on the public network in 24 seconds, and the average speed was as high as 87M/s. After the transfer, the MD5 was checked at both ends and found that the files were exactly the same. There are two characteristics of nc transmission: fast ➤, simple ➤ transmission, no need to log on to each other's server, and no need to verify information. Nc progress shows that if your file is too large and you want to see the transfer progress, use PV yum install epel-release-y`yum install pv-y``cat CentOS-6.9-x86_64-bin-DVD2.iso | pv-b | nc 45.55.0.86 9999 transfer directory receiver: nc ``- l``45.55.0.86 9999 | pv `- b` > home.tar.gz sender: tar-czf-/ home/ | nc 45.55.0.86 9999 transfer files A, B, C A USA, C Changnan, C can only access B, not direct access to AC B. How can C get the file on A? Execution on C: nc-l 9999 > google_file.txtB: nc-l 9999 | execution on nc (C's extranet IP) 9999A: nc (B's extranet IP) 9999 is the Linux system related content shared by Liangxu tutorials for all friends. If you want to know more about Linux, remember to follow the official account "good Linux", or scan the QR code below to follow, more practical information is waiting for you! What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

These are the solutions for efficient transfer of large files in Linux system shared by Xiaobian. 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

Development

Wechat

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

12
Report