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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page zipping into multiple files
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

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

Reply
 
Thread Tools Display Modes
Old 06-15-2006   #1 (permalink)
bugmenot
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-15-2006   #2 (permalink)
antidrugue
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)
SteveA
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)
SteveA
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 10:28 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0