📄 rar.txt
字号:
-mc<par> Set advanced compression parameters. This switch is intended mainly for benchmarking and experiments. In the real environment it is usually 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, based 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 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: 7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3, rar, taz, tgz, z, zip -mt<threads> Set the number of threads. Available in Windows version. May be available in some of Unix versions. <threads> parameter can take values from 0 to 16. It defines the recommended number of active threads for compression algorithm. If it is greater than 0, RAR will use the multithreaded version of compression algorithm providing higher speed on multiprocessor architectures. Real number of active threads can differ from the specified. If <threads> is zero, RAR will use the single threaded compression algorithm. Change of <threads> parameter slightly affects the compression ratio, so archives created with different -mt switches will not be exactly the same even if all other compression settings are equal. If -mt switch is not specified, RAR will try to detect the number of available processors and select the optimal number of threads automatically. -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. If you use -n@ without the list file name parameter, it will read file names from stdin. 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. -or Rename extracted files automatically if file with the same name already exists. Renamed file will get the name like 'filename(N).txt', where 'filename.txt' is the original file name and 'N' is a number starting from 1 and incrementing if file exists. -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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -