Linux RAR usage

Source: Internet
Author: User
Tags rar

Detailed instructions on usage of RAR for Linux commands

RAR usage: RAR <command>-<Option 1> .... -<option n> <operation documentation> <file...> <@ file list...> <decompression path>

Generally, the rarcommand is executed by a principal (Optional). The operation document is the. rar file object to be operated. The file or file list is the specific file or directory to be modified for the Operation Document ).
Common RAR Commands include:
1) Example of adding a file to an operation document rar a test.rar file1.txt
Rar a test.rar file2.txt if the test.rarfile already exists, then the file2.txtfile will be included in test.rar (so there will be two files in test.rar). Note: if there is a copy of a file in the Operation Document, the command updates the file, you can also perform operations on directories. rar a test.rar dir1.
(2) E test.rar. If you use ETO extract the original file1.txt and file2.txt files to the current directory, all the files in dir1 are extracted to the current directory, and the directory structure before compression cannot be maintained, if you want to keep the directory structure before compression, decompress X.
3) C. Add notes for the operation document EG. rar C test.rar
(The words "reading comment from stdin" appear, enter one or more lines of comments, and end with Ctrl + D ).
4) Cf adds file comments, similar to the above C, but this is to annotate each file in the compressed file CW writes the document comments into the file eg. rar CW test.rar comment.txt.
5) D. delete the file eg. rar D test.rar file1.txt E from the document
Decompress the file to the current directory eg. rar.
(6) e test.rar. If EIS used to extract the original file1.txt and file2.txt files to the current directory, all the files in dir1 are extracted to the current directory, and the directory structure before compression cannot be maintained, if you want to keep the directory structure before compression, decompress X.
7) r repair document EG. rar R test.rar
When there is a problem with the rarfile, you can use this command to fix it (the ghost knows how many problems are used ).
8) s conversion document to self-extract document EG. rar s test.rar
An executable test. SFX file is generated. Running this file is equivalent to RAR x test.rar, which is suitable for transferring files to users without RAR.
9) T detection document EG. rar t test.rar
Test the integrity of test.rar.
10) K lock document EG. rar K test.rar
After the document is locked, the document cannot be updated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.