how to compress a folder using rar?
how can i do it?
|
Rar is an archiver so it will not compress it like zip. You can use tar to compress and archive at the same time.
Code:
tar -czf file.tar.gz folder-to-be-tarred // z denotes it will create .gz file. You can use j for bzip2. |
Code:
$ rar a -m5 <yourFolder> Code:
$ man rar |
You need to use tar command as follows (syntax of tar command):
Code:
tar -zcvf archive-name.tar.gz directory-name Quote:
Code:
$ tar -zcvf prog-linuxtar.gz /home/prayag/prog |
i need it to be rar. sure i can unrar x *.rar
but seems the rar command aint found. Quote:
|
Rar is not installed on Linux by default and you need to install it manually. Use package manager for your distribution to install it.
|
Quote:
If you are using debain or a variant of debian, look for it this way Code:
$ dpkg -l |grep -i "ii rar" |
You need not have rar or create one. You can use tar to create a .tar archive and use rar package on windows to unrar it.
|
yum -y install unrar
|
|
Rar is proprietary.
There is a Linux version available, but it's neither free or open source, but, as a long-time Rar user, I must say that it is really slick. Free alternatives might not decode files compressed with the latest version. That aside, in some environments, such as Usenet, it has no peers and no competition; if you want to be there, you have to Rar. If you're going spend a lot of time in those environments and you are not doctrinaire about FLOSS, it's worth the 20 bucks. |
unrar is free to install BUT rar is NOT
you need to buy rar from there web site now there is a free one floating around the web - do some research but seeing at i live inside ( the new iron curtain - usa) i can be sued if i tell you where it is and how to install it |
I think on debian or ubuntu side you can install rar using package manager. Mine, I used rar for some file compression so i did installed the package using "apt-get install rar", see if you can try that to you.
|
leejohnli some distros have corporate backing and buy a license
SUSE is one |
Right, I forgot about the "RAR" one on linux. Thanx for correcting me.
|
Quote:
|
Use unrar instead of RAR .
|
All times are GMT -5. The time now is 08:31 PM. |