LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2009, 12:22 AM   #1
rax99
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Smile Split file in linux with zip format?! ( it is possible?)


hi

it is possible for split file with zip format in linux ?!

for example split large file to small size like that :

zip.01 , zip.02 , zip.03 , etc...

any archiver program in linux such as gzip or bzip can doing it ?!

Sorry if i have 1 post and my first post is question...

i doing search and find it

http://winlintips.blogspot.com/2007/...-in-linux.html

but it is not interest for me ...

i looking for archiver program in linux can split huge
file to zip or rar format ...but i know winrar is shareware or winzip ..

any archiver program in linux such as gzip or bzip can doing it ?!

plz notice that file shall be split to zip or rar formt not any
third party format like 7z or another format ...

thanx!
 
Old 03-23-2009, 03:22 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

on Linux there is a single command to do file splitting. Try
Code:
man split
.
 
Old 03-23-2009, 04:16 AM   #3
Borax_Man
Member
 
Registered: Jan 2009
Posts: 31

Rep: Reputation: 16
To uncompress, you do this, lets assume that you have split the files to files.tar.gz.partaa, files.tar.gz.partab, files.tar.gz.partac, etc

cat files.part* | gunzip | tar xvf -
 
Old 03-23-2009, 05:00 PM   #4
JaksoDebr
Member
 
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
It always helps to read the man pages :-) doesn't it?

zipsplit [-hiLpst] [-n size] [-b path] zipfile

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 05:15 AM.
 
Old 03-24-2009, 03:09 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Use p7zip, it supports volumes for both zip and 7z formats.
 
Old 03-26-2009, 02:20 PM   #6
rax99
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
kindly thanx to all friend for help me ...

any idea much appreciated ..

thanx...
 
Old 04-06-2009, 01:06 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by JaksoDebr View Post
It always helps to read the man pages :-) doesn't it?

zipsplit [-hiLpst] [-n size] [-b path] zipfile
Normally I'd agree w/ you, but neither the zipsplit man page on my MEPIS 7 box nor the one at die.net, has an entry explaining "-n size". We might guess that when zip is invoked as zipsplit, that the "-n size" option tells it the maximum desired size of the compressed pieces; but I can't find where the man page actually says this.
 
Old 04-06-2009, 01:40 PM   #8
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
split -b 5000000 file.zip file.zip command splits the file.zip into a bunch of the files of 5000000 bytes each named file.zipaa to file.zipzz. To unzip them you need first to concatenate them into zip file using the command cat file.zip?? > newfile.zip.

zipsplit -n 5000000 file.zip command splits file.zip into a bunch of zip files named file1.zip, file2.zip, and so on. The number after -n switch should be greater than the size of the biggest file stored in the original file.zip. The resulting zip files are independent -- you can unzip them separately.
 
Old 04-06-2009, 03:18 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Any idea where to find a proper man page for zipsplit?
 
Old 04-07-2009, 09:07 PM   #10
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
I used zipsplit -h command and tested the behavior of the program. Some man page you'll find there: http://www.manpagez.com/man/1/zipsplit/. It's similar to the output of zipsplit -h.
 
  


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
Command line utility to split a zip file paragkalra Linux - Software 1 09-16-2008 10:09 AM
Zip or Rar split for 500 MB file sadarax Linux - Software 2 06-01-2007 05:20 AM
How to split file , .. awk or split ERBRMN Linux - General 9 08-15-2006 12:02 AM
is there a linux-supported archive format that can split into multiple files? Moebius Linux - Software 3 07-11-2006 02:52 PM
how to split a file in linux irfanhab Linux - General 1 05-04-2005 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

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