Rar unrar

From Bytesized Wiki

Revision as of 12:18, 29 September 2011 by Maxlazio (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision β†’ (diff)
Jump to: navigation, search

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