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?
unzipwindowszip
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?
Best Answer
On Ubuntu you can use the
split
command to split your zip file. Something like this should work: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: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 Windowstype
command will not work as it adds the files names between them when processing more than one file. One working approach iscopy /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 therar
package, then: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.