Linux RAR / UNRAR archiver

Installation

  • apt-get install unrar
  • yum install unrar

Compress:

  • rar a -m5 -v5M -R myarchive /home/

rar - starts the program
a - tells program to add files to the archive
-m5 - determine the compression level (0-store (fast)…3-default…5-maximum(slow))
-v5M - determine the size of each file in split archive, in this example you get files with size 5MB
myarchive - name of the archive you are creating
/home/ - is folder of the files you wish to add to the archive

Uncompress Archive

  • rar x myarchive.part01.rar

Leave a Reply

You must be logged in to post a comment.