📄 rar.txt
字号:
an archive, other people may have problems when decompressing it on a computer with less memory installed. Decompression will be still possible using virtual memory, but it may become very slow. Examples: 1) switch -mc1a+ forces use of 8-bit mono audio compression for all data. 2) switch -mc10:40t+ forces use of text compression algorithm for all data, sets the compression order to 10 and allocates 40 MB memory. 3) switch -mc12t sets the text compression order to 12, when the text compression is used, but leaves to RAR to decide when to use it. 4) switches -mct- -mcd- disable text and delta compression. -md<n> Select dictionary size <n> in KB. Must be 64, 128, 256, 512, 1024, 2048 or 4096 or a letter 'a', 'b', 'c', 'd', 'e', 'f', 'g' respectively. The sliding dictionary is a special memory area used by the compression algorithm. If the size of the file being compressed (or the total files size in the case of a solid archive) is greater than the dictionary size, then increasing the dictionary size will generally increase compression ratio, decrease packing speed and increase memory requirements. RAR can reduce the dictionary size if it is significantly larger than the size of the source data. It helps to reduce memory requirements without decreasing compression. Default sliding dictionary size is 4096 KB. Example: RAR a -s -mdd sources *.asm or RAR a -s -md512 sources *.asm Will create a solid archive using a 512 KB dictionary. -ms[list] Specify file types to store. Specify file types, which will be stored without compression. This switch may be used to store already compressed files, which helps to increase archiving speed without noticeable loss in the compression ratio. Optional <list> parameter defines the list of file extensions separated by semicolons. For example, -msrar;zip;jpg will force RAR to store without compression all RAR and ZIP archives and JPG images. It is also allowed to specify wildcard file masks in the list, so -ms*.rar;*.zip;*.jpg will work too. If <list> is not specified, -ms switch will use the default set of extensions, which includes the following file types: ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3, rar, zip, taz, tgz, z -n<f> Include only the specified file <f>. Wildcards may be used both in the name and file parts of file mask. You may specify the switch '-n' several times. This switch does not replace usual file masks, which still need to be entered in the command line. It is an additional filter limiting processed files only to those matching the include mask specified in -n switch. It can help to reduce the command line length sometimes. For example, if you need to compress all *.txt and *.lst files in directories Project and Info, you can enter: rar a -r text Project\*.txt Project\*.lst Info\*.txt Info\*.lst or using the switch -n: rar a -r -n*.txt -n*.lst text Project Info -n@<lf> Include files using the specified list file. Similar to -n<f> switch, but reads include masks from the list file. Example: rar a -r -n@inclist.txt text Project Info -oc Set NTFS Compressed attribute. Win32 version only. This switch allows to restore NTFS Compressed attribute when extracting files. RAR saves Compressed file attributes when creating an archive, but does not restore them unless -oc switch is specified. -ol Save symbolic links as the link instead of the file. Unix version only. -os Save NTFS streams. Win32 version only. This switch has meaning only for NTFS file system under Windows NT and allows to save alternative data streams associated with a file. It is especially important under Windows 2000 and XP, which use streams to keep some file dependent information like file descriptions. If you use RAR to backup your NTFS disks, it is recommended to specify this switch. -ow Use this switch when archiving to save file security information and when extracting to restore it. Unix RAR version saves file owner and group when using this switch. Win32 version stores owner, group, file permissions and audit information, but only if you have necessary privileges to read them. Note that only NTFS file system supports file based security under Windows. -o+ Overwrite existing files. -o- Do not overwrite existing files. -p[p] Encrypt files with the string <p> as password while archiving. The password is case-sensitive. If you omit the password on the command line, you will be prompted with message "Enter password". Example: rar a -pmyhoney secret1 *.txt add files *.txt and encrypt them with password "myhoney". -p- Do not query password -r Recurse subdirectories. May be used with commands: a, u, f, m, x, e, t, p, v, l, c, cf and s. When used with the commands 'a', 'u', 'f', 'm' will process files in all sub-directories as well as the current working directory. When used with the commands x, e, t, p, v, l, c, cf or s will process all archives in sub-directories as well as the current working directory. -r0 Similar to -r, but when used with the commands 'a', 'u', 'f', 'm' will recurse subdirectories only for those names, which include wildcard characters '*' and '?' -ri<p>[:<s>] Set priority and sleep time. Available only in RAR for Windows. This switch regulates system load by RAR in multitasking environment. Possible task priority <p> values are 0 - 15. If <p> is 0, RAR uses the default task priority. <p> equal to 1 sets the lowest possible priority, 15 - the highest possible. Sleep time <s> is a value from 0 to 1000 (milliseconds). This is a period of time that RAR gives back to the system after every read or write operation while compressing or extracting. Non-zero <s> may be useful if you need to reduce system load even more than can be achieved with <p> parameter. Example: execute RAR with default priority and 10 ms sleep time: rar a -ri0:10 backup *.* -rr[N] Add a data recovery record. This switch is used when creating or modifying an archive to add a data recovery record to the archive. See the 'rr[N]' command description for details. -rv[N] Create recovery volumes. This switch is used when creating a multivolume archive to generate recovery volumes. See the 'rv[N]' command description for details. -s Create solid archive. Solid is a special archive type. Please refer to the appendix "Glossary" for further information. Example: create solid archive sources.rar with 512 KB dictionary, recursing all directories, starting with the current directory. Add only .asm files: rar a -s -md512 sources.rar *.asm -r -s<N> Create solid groups using file count Similar to -s, but reset solid statistics after compressing <N> files. Usually decreases compression, but also decreases losses in case of solid archive damages. -se Create solid groups using extension Similar to -s, but reset solid statistics if file extension is changed. Usually decreases compression, but also decreases losses from solid archive damages. -sfx[name] Create SFX archives. If this switch is used when creating a new archive, a Self-Extracting archive (using a module in file default.sfx or specified in the switch) would be created. In the Windows version default.sfx should be placed in the same directory as the rar.exe, in Unix - in the user's home directory, in /usr/lib or /usr/local/lib. Example: rar a -sfxwincon.sfx myinst create SelF-eXtracting (SFX) archive using wincon.sfx SFX-module. -si[name] Read data from stdin (standard input), when creating an archive. Optional 'name' parameter allows to specify a file name of compressed stdin data in the created archive. If this parameter is missing, the name will be set to 'stdin'. This switch cannot be used with -v. Example: type Tree.Far | rar a -siTree.Far tree.rar will compress 'type Tree.Far' output as 'Tree.Far' file. -sv Create independent solid volumes By default RAR tries to reset solid statistics as soon as possible when starting a new volume, but only if enough data was packed after a previous reset (at least a few megabytes). This switch forces RAR to ignore packed data size and attempt to reset statistics for volumes of any size. It decreases compression, but increases chances to extract a part of data if one of several solid volumes in a volume set was lost or damaged. Note that sometimes RAR cannot reset statistics even using this switch. For example, it cannot be done when compressing one large file split between several volumes. RAR is able to reset solid statistics only between separate files, but not inside of single file. Ignored, if used to create non-volume archive. -sv- Create dependent solid volumes Disables to reset solid statistics between volumes. It slightly increases compression, but significantly reduces chances to extract a part of data if one of several solid volumes in a volume set was lost or damaged. Ignored, if used to create non-volume archive. -s- Disable solid archiving -t Test files after archiving. This switch is especially useful in combination with the move command, so files will be deleted only if the archive had been successfully tested. -ta<date> Process only files modified after the specified date. Format of the date string is YYYYMMDDHHMMSS. It is allowed to insert separators like '-' or ':' to the date string and omit trailing fields. For example, the following switch is correct: -ta2001-11-20 Internally it will be expanded to -ta20011120000000 and treated as "files modified after 0 hour 0 minutes 0 seconds of 20 November 2001". -tb<date> Process only files modified before the specified date. Format of the switch is the same as -ta<date>. -tk Keep original archive date. Prevents RAR from modifying the archive date when changing an archive. -tl Set archive time to newest file. Forces RAR to set the date of a changed archive to the date of the newest file in the archive. -tn<time> Process files newer than the specified time period. Format of the time string is: [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s] For example, use switch -tn15d to process files newer than 15 days and -tn2h30m to process files newer than 2 hours 30 minutes. -to<time> Process files older than the specified time period. Format of the switch is the same as -tn<time>. -ts<m,c,a>[N] Save or restore file time (modification, creation, access).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -