LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2019, 12:24 PM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 474

Rep: Reputation: Disabled
How to split a 9GB .zip file into smaller pieces?


The file is my collection of old public-domain Windows programs. I could manually un-zip it and then re-zip it in parts, but that would take a long time.

Is there a quicker way to do this please?

I would like each part to be say 2GB. I recall in the past seeing zip files that were sequentially numbered but behaved like one big file.

Thanks.
 
Old 05-09-2019, 12:37 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
You can use the split utility and then recombine the files using the cat command.

The split utility will create numerical or alphabetical suffixes.

Update. linux does have a zipsplit utility that will split an existing zip file into smaller parts. Never mind it might not be able to handle large files.

Last edited by michaelk; 05-09-2019 at 12:49 PM.
 
Old 05-10-2019, 08:42 AM   #3
CaptainFreeze
LQ Newbie
 
Registered: Feb 2010
Posts: 5

Rep: Reputation: 1
split to break up the file then cat to put it together should work fine
 
Old 05-11-2019, 01:42 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
split to break up the file. You can use cat in *nix to combine them. Or copy for windows land.

C:> copy part01/b+part02/b+part03/b parts.zip

$> cat part?? > parts.zip

Having had to send a file like that over dialup and with email clients limited to 10MB attachments. Glad those days are over for "most" of us.
 
Old 05-13-2019, 02:59 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
More examples. https://linoxide.com/linux-how-to/sp...r-files-linux/
 
Old 05-23-2019, 11:00 AM   #6
agent_mach
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
Follow this, this should help you ... https://vlinux-freak.blogspot.com/20...-to-small.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I have zip -d file.zip "__MACOSX*" work on all zip files in directory? thomwblair Linux - Newbie 10 10-08-2018 02:30 PM
Split large file into smaller files mikes88 Programming 29 03-22-2012 10:14 AM
how to sort text file and split into smaller files michaeljoser Linux - Software 8 10-19-2007 01:50 AM
Compress and split a big sized file into smaller files hicham007 Programming 3 07-28-2005 08:56 PM
transfering a 9gb file BigHead314 Linux - Networking 4 01-03-2004 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration