Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > zipping into multiple files

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-15-2006   #1 (permalink)
Banned
 
Join Date: Apr 2006
Posts: 35
zipping into multiple files

Hello all

I need to compress a directory with single files that dosent fit into a single CD. And since i lack a DVD burner, i need to compress these files into a multi-file archieve, like .RAR, R01 etc...

the question is how i can accomplish this? I need it to be done so it can be uncompressed with 7-zip, so please give me suggestions that can be uncompressed on windows machines too

Thank you!
bugmenot is offline  


Reply With Quote
Old 06-16-2006   #2 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
With RAR, you can do it like that:
Code:
rar a -v<volume_size_in_kb>k -vn resulting.rar file1 file2 file3
The general syntax is this :
Code:
rar <command> [-<switch 1> -<switch N>] archive [files...]

So something like that would compress file1.avi and file2.avi in .rar files of 1000kb :
Code:
rar a -v1000k -vn resulting.rar file1.avi file2.avi
More in the "rar" manual :
Code:
man rar
You can even do something like that :
Code:
rar a -v1000k -v2000k -v3000k -vn resulting.rar file1.avi file2.avi
different volume size for different .rar files.

*The -vn extension is for old naming scheme, like archive.rar, archive.r01, archive.r02, ... instead of the new naming scheme : archive.part01.rar, archive.part02.rar, etc.
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 06-17-2006   #3 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 22
The p7zip package for Linux includes the '7za' utility

You can create an archive from the current directory as:
7za a -r archivename .
and extract as:
7za x archivename.7z

These can be handled by 7zip on Windows.

There are many compression/decompression utilities under Linux. The "tar" with compression variants are very popular, but requires a corresponding WIndows utility (winzip works on some, don't know about 7zip).
tar -czvf archive.tgz .
tar -xzvf archive.tgz
SteveA is offline   Reply With Quote
Old 06-17-2006   #4 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 22
The p7zip package for Linux includes the '7za' utility

You can create an archive from the current directory as:
7za a -r archivename .
and extract as:
7za x archivename.7z

These can be handled by 7zip on Windows.

There are many compression/decompression utilities under Linux. The "tar" with compression variants are very popular, but requires a corresponding Windows utility (winzip works on some, don't know about 7zip).
tar -czvf archive.tgz .
tar -xzvf archive.tgz
SteveA is offline   Reply With Quote
Old 01-24-2007   #5 (permalink)
mgh
Just Joined!
 
mgh's Avatar
 
Join Date: Jan 2007
Posts: 5
Lightbulb

IS better to use 7zip because is one of the best file compressors: Is GPL'd (rar is shareware), both speeds and compression ratio performances are very similar, 7zip is more compatible with various OS.
including the oldies.

The problem comes when you try to compress *.avi files. 'avi' and 'mpeg' formats are them-selves compressed, in other words, they are compressed packages. So one file compressed 7z or rar will be almost every time the same size of the uncompressed file if not more.

For video files try Matroska (.mkv) Is wonderful, GPL'd, have better audio and video resolution, and much better compression (audio .ogg).

Try to convert your video files to matroska



Quote:
Originally Posted by SteveA
The p7zip package for Linux includes the '7za' utility

You can create an archive from the current directory as:
7za a -r archivename .
and extract as:
7za x archivename.7z

These can be handled by 7zip on Windows.

There are many compression/decompression utilities under Linux. The "tar" with compression variants are very popular, but requires a corresponding WIndows utility (winzip works on some, don't know about 7zip).
tar -czvf archive.tgz .
tar -xzvf archive.tgz
Almost forgotten: Newest p7zip versions have seemingly better performance than recent versions.
In Wind**s there are very many compressors which can handle 7z files: Powerarchiver, winzip or winrar, etc. See the 7zip home page...
mgh is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:14 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2