Rar unrar

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Compressing/Extracting files on your slice== ===Extracting=== *To extract files from a rar archive on the server, use this command: unrar e SomeMovieChunkFile.rar -e is for Ex…')
Line 21: Line 21:
  -a adds files to archive, ~/folder_to_archive is the directory we want commpressed into rar archive
  -a adds files to archive, ~/folder_to_archive is the directory we want commpressed into rar archive
-
*If you want to create a rar split archive:
+
*If you want to create a rar split archive:
   rar a -m5 -v5M -R myarchive ~/folder_to_archive
   rar a -m5 -v5M -R myarchive ~/folder_to_archive

Revision as of 12:19, 29 September 2011

Compressing/Extracting files on your slice

Extracting

  • To extract files from a rar archive on the server, use this command:
unrar e SomeMovieChunkFile.rar

-e is for Extract files to current directory

  • To list files inside rar archive without extracting them:
unrar l file.rar

-l is for list (not a number ‘one’)

  • To extract files with full path, type this command:
unrar x file.rar
  • To test integrity of archive file, type this command:
unrar t file.rar

-t is for testing integrity of archive

Compressing

  • To create a rar archive on the server:
rar a -R myarchive  ~/folder_to_archive
-a adds files to archive, ~/folder_to_archive is the directory we want commpressed into rar archive
  • If you want to create a rar split archive:
 rar a -m5 -v5M -R myarchive ~/folder_to_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 (if you wanted files of 512kB size you would write -v512k)

Personal tools