📄 rar.txt
字号:
-hp[p] Encrypt both file data and headers. This switch is similar to -p[p], but switch -p encrypts only file data and leaves other information like file names visible. This switch encrypts all sensitive archive areas include file data, file names, sizes, attributes, comments and other blocks, so it provides a higher security level. Without a password it is impossible to view even the list of files in archive encrypted with -hp. Example: rar a -hpfGzq5yKw secret report.txt will add the file report.txt to the encrypted archive secret.rar using the password 'fGzq5yKw' -idp Disable percentage indicator. May be useful when redirecting output to a file. -ieml[.][addr] Send archive by email. Win32 version only. Attach an archive created or updated by the add command to email message. You need to have MAPI compliant email client to use this switch (most modern email programs support MAPI interface). You may enter a destination email address directly in the switch or leave it blank. In the latter case it will be asked by your email program. It is possible to specify several addresses separated with commas or semicolons. If you append a dot character to -ieml, an archive will be deleted after it was successfully attached to email. If the switch is used when creating a multivolume archive, every volume is attached to separate email message. -ierr Send all messages to stderr. -ilog[name] Log errors to file (registered version only). Write error messages to the file rar.log created in RAR directory. It is possible to specify another log file name instead of the default rar.log in the switch, for example, -ilogc:\log\backup.log. If the specifed name does not include path, the log file will be created in RAR directory. -inul Disable all messages. -ioff Turn PC off after completing an operation. The hardware must support the power off feature. Win32 version only. -isnd Enable sound. -k Lock archive. Any command which intends to change the archive will be ignored. -kb Keep broken extracted files. RAR, by default, deletes files with CRC errors after extraction. The switch -kb specifies that files with CRC errors should not be deleted. -m<n> Set compression method: -m0 store do not compress file when adding to archive -m1 fastest use fastest method (less compressive) -m2 fast use fast compression method -m3 normal use normal (default) compression method -m4 good use good compression method (more compressive, but slower) -m5 best use best compression method (slightly more compressive, but slowest) If this switch is not specified, RAR uses -m3 method (normal compression). By default, RAR uses only the general compression algorithm in -m1 and -m2 methods, advanced algorithms like audio and true color processing are enabled only in -m3..-m5 modes, the advanced text compression is activated only in -m4..-m5. This default can be overridden using -mc switch. -mc<par> Set advanced compression parameters. This switch is intended mainly for benchmarking and experiments, in the real environment usually it is better to allow RAR to select optimal parameters automatically. Please note that improper use of this switch may lead to very serious performance and compression loss, so use it only if you clearly understand what you do. It has the following syntax: -mc[param1][:param2][module][+ or -] where <module> is the one character field denoting a part of the compression algorithm, which has to be configured. It may have the following values: A - audio compression; C - true color (RGB) data compression; D - delta compression; E - 32-bit x86 executables compression; I - 64-bit Intel Itanium executables compression; T - text compression. '+' sign at the end of switch applies the selected algorithm module to all processed data, '-' disables the module at all. If no sign is specified, RAR will choose modules automatically, basing on data and the current compression method. Switch -mc- disables all optional modules and allows only the general compression algorithm. <Param1> and <Param2> are module dependent parameters described below. Audio compression, delta compression: <Param1> is a number of byte channels (can be 1 - 31). RAR splits multibyte channels to bytes, for example, two 16-bit audio channels are considered by RAR as four channels one byte each. <Param2> is ignored. 32-bit x86 Intel executables compression, 64-bit Intel Itanium executables compression, true color (RGB) data compression: <Param1> and <Param2> are ignored. Text compression: <Param1> is the order of PPM algorithm (can be 2 - 63). Usually a higher value slightly increases the compression ratio of redundant data, but only if enough memory is available to PPM. In case of lack of memory the result may be negative. Higher order values decrease both compression and decompression speed. <Param2> is memory in megabytes allocated for PPM (1-128). Higher values may increase the compression ratio, but note that PPM uses the equal memory size both to compress and decompress, so if you allocate too much memory when creating 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 size of 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, what helps to increase archiving speed without noticeable loss in the compression ratio. Optional <list> parameter defines the list of file extensions separated with a semicolon. 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 -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 is used to regulate system load by RAR in a multitasking environment. The possible task priority values are from 0 to 15. When <p> is equal to 0, the default task priority is used, 1 corresponding to the lowest task priority, 15 - to the highest. The sleep time <s> is a value from 0 to 1000 (milliseconds). This is the period of time that RAR will give back to system after every read or write during the packing or unpacking operation. The sleep time setting is useful when several tasks with the same priority are running in the system. Example: execute RAR with default priority and 10 ms of sleep after each read or write rar a -r -sfx -ri0:10 backup *.* -rr[N] Add a data recovery record. This switch is used when creating or modifying 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. -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 a lot 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 solid volumes in 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 solid volumes in volume set was lost or damaged.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -