Rar unrar

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
(Extracting)
(Extracting)
Line 13: Line 13:
  unrar t file.rar
  unrar t file.rar
-t is for testing integrity of archive
-t is for testing integrity of archive
-
*To extract files from multiple subfolders ie. DVD1/somefile.rar DVD2/somefile2.rar etc
+
*To extract files from multiple subfolders ie. DVD1/somefile.rar DVD2/somefile2.rar, will extract to current folder
  unrar x -r *.rar
  unrar x -r *.rar

Revision as of 11:48, 24 October 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

  • To extract files from multiple subfolders ie. DVD1/somefile.rar DVD2/somefile2.rar, will extract to current folder
unrar x -r *.rar

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