Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st April 2010, 06:55 PM
benicio Offline
Registered User
 
Join Date: Oct 2009
Posts: 73
linuxfirefox
command line for compressing using rar?

anybody know how to zip a folder with 500mb?
i want to create zip files with about 100mb each. please?

how do i do it in rar?

whats the commandline please?
Reply With Quote
  #2  
Old 1st April 2010, 07:03 PM
kyryder
Guest
 
Posts: n/a
linuxredhatfirefox
Re: command line for compressing using rar?

Hello,

Code:
zip file1 file2 file3
Would create a zip file of three files with the name file1. The first file name specified on the command line is automatically chosen as the name of the resultant compressed file.

also see
Code:
man zip
for more info

Hope this helps,

ky
Reply With Quote
  #3  
Old 1st April 2010, 09:43 PM
benicio Offline
Registered User
 
Join Date: Oct 2009
Posts: 73
linuxfirefox
Re: command line for compressing using rar?

that didn't do anything.
Reply With Quote
  #4  
Old 1st April 2010, 09:49 PM
kyryder
Guest
 
Posts: n/a
linuxfedorafirefox
Re: command line for compressing using rar?

Hello,

Works fine here.

Code:
[kyryder@localhost testzip]$ zip file1 file2 file3
  adding: file2 (stored 0%)
  adding: file3 (stored 0%)
[kyryder@localhost testzip]$ ll file1.zip
-rw-rw-r--. 1 kyryder kyryder 276 2010-04-01 16:48 file1.zip
[kyryder@localhost testzip]$
Try reading the manual
Code:
man zip
Ky

Last edited by kyryder; 1st April 2010 at 09:53 PM.
Reply With Quote
  #5  
Old 1st April 2010, 10:19 PM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
windows_7firefox
Re: command line for compressing using rar?

benicio asked for a multipart rar file, not a single zip file containing two other files, at least as far as I understand.

I don't know if any third-party repositories are packaging rar right now. unrar is in RPMFusion but I don't see a program for creating rars in RPMfusion.

Winrar's website contains tarballs for Linux install, though.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #6  
Old 2nd April 2010, 01:56 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Re: command line for compressing using rar?

RPMFusion has unrar in non-free. To create *.rar archives, ATRPMs has rar, however, beware of mixing the two repos (keep one or the other disabled for automatic updates).

V
Reply With Quote
  #7  
Old 2nd April 2010, 06:33 PM
antjoh Offline
Registered User
 
Join Date: Mar 2010
Posts: 13
macossafari
Re: command line for compressing using rar?

I don't have a linux install available right now to test this, but if I remember correctly I think I used the cut command for this a while back. Basically what you do is to zip the file as you normally do in to one big file and then chop it up with cut in desired sizes.

When you want to extract it you would use cat to concatenate the choped up files back in to one and then finally unzip it as normal. Something like "cat file1 file2 file3 >> myZip.zip"

As I said, this is untested but it feels like it *should* work

---------- Post added at 07:33 PM CDT ---------- Previous post was at 07:02 PM CDT ----------

Maybe the command is "split" and not cut when I think about it...
Reply With Quote
  #8  
Old 2nd April 2010, 09:38 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxopera
Re: command line for compressing using rar?

Both Ubuntu and Archlinux have a rar program. (Sometimes, I can get away with installing Ubuntu in a VM, and then using its alien program to create an rpm. it doesn't always work, but sometimes it does.)

With Arch, it's in the AUR, not the main package tree.
(FreeBSD also has it.)
Reply With Quote
Reply

Tags
command, compressing, line, rar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


Current GMT-time: 11:15 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat