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

View: 3099|Reply: 2

[linux] Linux uses split file cutting splits

[Copy link]
Posted on 1/1/2024 5:58:52 PM | | | |
Requirements: After classifying a folder as a single tar file, the file is too large to download or save, and a single file needs to be split into multiple files for download or saving.

Split the itsvse.tar into 1G sizes with the following command:

Use the split command

-b 3G means to set the size of each split packet, the unit can still be M or k
The -d parameter specifies the form in which the resulting split package is suffixed with a number
-a x to set the length of the sequence (the default value is 2), where the length of the sequence is set to 1

After the splitting is complete, the output file is as follows:

-rw-r--r-- 1 root root 1073741824 Jan  1 17:51 itsvse.tar.0
-rw-r--r-- 1 root root 1073741824 Jan  1 17:52 itsvse.tar.1
-rw-r--r-- 1 root root 1073741824 Jan  1 17:52 itsvse.tar.2
-rw-r--r-- 1 root root 1073741824 Jan  1 17:52 itsvse.tar.3
-rw-r--r-- 1 root root 1073741824 Jan  1 17:52 itsvse.tar.4
-rw-r--r-- 1 root root  584693760 Jan  1 17:53 itsvse.tar.5

After splitting, merge multiple files into one file, the command is as follows:

Finally, compare the split file with the source file, and the files are the same, as shown in the figure below:



(End)





Previous:Linux uses tar to create archive files
Next:Comparison of contributors to multiple open source projects on GitHub
 Landlord| Posted on 2/14/2024 8:26:13 AM |
Windows Merge File command, another way to write it:


 Landlord| Posted on 2/14/2024 12:05:15 PM |
Use .NET to merge cut files into a single file

.NET/C# High performance merges multiple files into a single file
https://www.itsvse.com/thread-10733-1-1.html
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