Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 47015  / 1 Year ago, mon, december 12, 2022, 1:32:06

I need to split a .zip file in Ubuntu as .z01, .z02 etc... so that I would join them back in Windows.



I don't have access to command prompt in Windows. How would I unzip files now?


More From » windows

 Answers
4

On Ubuntu you can use the split command to split your zip file. Something like this should work:



split your-zip.zip -b 32M ZIPCHUNKS


This will create a bunch of ZIPCHUNKS* files, in order, and all 32 MB or less in size. Change the 32M parameter to vary the chunk size.



Traditionally you'd use cat to glue them back together:



cat ZIPCHUNKS* > reassembled-zip.zip


Since you want to do the reassembling on Windows, you need a substitute for cat. Is there replacement for cat on Windows may help, but note that the Windows type command will not work as it adds the files names between them when processing more than one file. One working approach is copy /b ZIPCHUNKS* > reassembled-zip.zip.



You can also use rar which natively supports creating "split" archives which can then be decompressed by a GUI tool on Windows such as WinZip or WinRar. On Ubuntu, install the rar package, then:



rar a -v32M destination.rar files/to/compress


This will create files called destination.partXX.rar. Transfer these to Windows, then unrar the first one (destination.rar), which will link to the others automatically.



One trick you can potentially use is to "rar" the original zip file, that way you can reassemble it on Windows. If you have the original files, it may be easier to just rar them and work with that.


[#33727] Monday, December 12, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingssex

Total Points: 21
Total Questions: 122
Total Answers: 98

Location: Sweden
Member since Fri, Mar 26, 2021
3 Years ago
;