How to use rar in console on linux.

xiaoxiao2021-03-06  63

RAR usage: rar

-

....-

<@ 文件 list ...>

Usually the RAR command is composed of a master command plus a number of options (optional), and the operation document is an operational application .Rar file object, file, or file list is a specific file or directory (optional) that implements modifying the operation document. The RAR common command mainly has a Add file to the operation document EG. Rar a test.rar file1.txt If the test.rar file does not exist, the file1.txt file is packaged. Rar Rar A Test.rar file2.txt If Test is TEST. The RAR file already exists, then add a file2.txt file to TEST.RAR (two files in Test.rar) Note, if a copy of a file already has a file in the operation document, then a command update this file. Also, the directory can also be operated EG. RAR A TEST.RAR DIR1 C Add an instructions for the operation document Note Eg. Rar C test.rar (will appear Reading from stdin words, then enter a line or multi-line comment, Ctrl D End) CF Add File Note, Similar to the above C, but this is to annotate each file in the compressed document CW Write document comments into file EG. RAR CW test.rar Comment.txt D Remove file EG from the document. Rar D Test.rar file1.txt e extracts the file to the current directory EG. Rar e Test.rar Note, use e to extract, not only the original file1.txt and file2.txt are decompressed to the current directory, even Dir1 All files are also unzipped into the current directory, cannot maintain a directory structure before compression, if you want to keep the directory structure before compression, use X to extract the K lock document EG. RAR K Test.rar Locks the document, this document cannot be made Update the R fixing document EG. Rar R Test.rar When there is a problem, you can try to repair this command (how much to use) S conversion document is self-extracting document EG. Rar S Test.rar will generate A Test.SFX executable document, running its effect is equivalent to RAR X Test.rar, suitable for transferring files T detected document EG in a user without RAR. Rar T Test.rar detection Test.rar integrity, general It is best to use this command to ensure that the contents of the files are used to ensure that the contents of the files of the files are used to ensure that the contents of the files are decompressed. The common command, one RAR operation can only have one command, and the options can be multiple.

There are a lot of RAR options, can't explain here, only a few CLs that are often used, convert the file name to lowercase CU to translate the file name to uppercase EG. RAR A -CL Test.rar file.txt file.txt is added After the test.rar, the source file EG is deleted after the file.txt DF document operation, and the RAR A -DF TEST.RAR file1.txt file2.txt dir1 compresses file1.txt, file2.txt, DIR1 to TEST.RAR After that, the delete source file ED does not add an empty directory EG. RAR A-TEST.RAR DIR1 Add DIR1 to TEST.RAR, do not operate the empty directory RAR E-Test.rar decompressed Test.rar, not to be empty Directory k lock file EG. RAR A -K test.rar file1.txt is equivalent to Rar A Test.rar file1.txt rar k test.rar m <0..5> set compression ratio (0- Storage, 3 - Default, 5- Maximum) Eg. RAR A -M0 TEST.rar Dir1 Dir2 stores DIR1, DIR2 packages to test.rar, not substantially compressed (fast speed, suitable for non-comparable files) Operation, such as AVI, JPG, etc.) RAR A -M5 TEST.RAR * .txt * .bmp compresses the TXT file and BMP files in the current directory to test.rar, use the maximum compression ratio (slower) MS [EXT; EXT] Specific files use non-compression mode EG. RAR A -M5 -MS AVI; JPG; JPEG TEST.rar / Home Archives all directories and files in the home directory to Test.rar, but AVI, JPG, JPEG The file is not compressed (just packaged into test.rar, because these files can't use the maximum compression, it is better to pack saving time) O overwritten existing file O- does not overwrite the existing file EG. RAR X-TEST .rar decompresses the TEST.RAR file, but if you encounter the existing file, the OL is not overwritten to save the symbol link to the link file, not the information of the ordinary file OW to save or restore the file owner (Username, Group). * NIX system unique command, it is easy to understand P [password] set password EG. RAR A TEST.RAR * .txt -p prett YGIRL compressed file setting password is prettygirl, unzipped without password, can not be performed If you feel that the bright code is too exposed, you can use RAR A Test.rar * .txt -P, RAR program will ask if you want to use, do not look s Use solid compressed S- not use solid compression note, solid compression is a compressed manner that is not changed after compression documentation, which is different from LOCK. Because using normal compression to take care of the needs of individual files, there is a lot of operating rooms. The solid compression cannot be updated anything, so the compression ratio is the largest. SFX [Name] creates self-extracting files, which is compressed with A, and then use S conversion effect. After t is compressed, the integrity test Eg. Rar a test.rar / home -t compression is completed, if there is a problem, an error is reported. TA only operates the file after the DATA date

Operation only before the Data date, Date's format is YYYYMMDDHHMMSS. v

[k, b] Split compression, each volume size is specified by the following size specified EG. RAR A -V15000K -M0 Test XVID-Fn.avi Package XVID-Fn.avi, 15000K per volume size (this format is Online publishing DVDRIP very popular) The generated file name is Test.Part1.rar, Test.Part2.rar .... (RAR 3.20) X Exclusions EG. RAR X Test.rar -x * .txt decompressed Document other than * .txt in test.rar x @

Also, but this time all excluded files are placed in the list of the list file. Yes, if you have timely decompressed, you will ask if you have overwritten (Y / N) every time you meet, plus -Y, you can choose Yes by default. No longer ask

转载请注明原文地址:https://www.9cbs.com/read-111265.html

New Post(0)