Rar unrar

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
(β†’Extracting)
 
(4 intermediate revisions not shown)
Line 10: Line 10:
*To extract files with full path, type this command:
*To extract files with full path, type this command:
  unrar x file.rar
  unrar x file.rar
 +
*To extract files with full path, and files are passworded, type this command:
 +
unrar x -psomepassword file.rar
*To test integrity of archive file, type this command:
*To test integrity of archive file, type this command:
  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, will extract to current folder
 +
unrar x -r *.rar
===Compressing===
===Compressing===
Line 19: Line 23:
  rar a -R myarchive  ~/folder_to_archive
  rar a -R myarchive  ~/folder_to_archive
-
-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:

Current revision as of 14:22, 12 February 2012

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 extract files with full path, and files are passworded, type this command:
unrar x -psomepassword 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