Invalid. /21andy.com/decompress andy.rarto the directory named rarxandy.rarce... centOS + rar + unrar install rar unrar command details first write down the two most common rar commands to package the 21andy.com directory as andy.rar www.2cto.com # rar andy.rar. /21andy.com/decompress andy.rar to the current directory # rar x andy.rar CentOS + rar + unrar install www.2cto.com # vi/etc/yum. repos. d/dag. put the following content in repo: [dag] name = Dag RPM Repository for Red Hat Enterprise Linux baseurl = export gpgcheck = 1 enabled = 1 gpgkey = yum installation # yum-y install rar unrarrar + unrar command details # rar -- help usage: rar <命令> - <选项 1> - <选项 n> <压缩档案> <文件...> <@ File list...> <解压缩路径\> <命令> A. add a file to compressed file c. add a compressed file comment (the size of the comment cannot exceed 62000 bytes) cf add a file note (when the 'V' parameter is used, the file remarks are displayed, up to 32767 bytes) ch changes the compressed file parameter cw writes the file remarks to the specified file d deletes the file from the file e decompress the file to the current directory (no subdirectories are created) f refresh the files in the file (update the files generated after they are packaged, not add new files in the compressed file) I [par] = Search for a specific character k in the archive to lock the archive (any command that tries to change the content in the compressed archive will be ignored) l [t, B] list the archive [technical, bare] m [f] move to compressed files [for files only] p print files to standard output r patch compressed files rc reconstruction lost split volumes rn rename compressed files rr [N] add data recovery record rv [N] create recovery Volume s [name |-] Compressed file and SFX (self-extracting document) conversion between t test compressed file u update compressed file v [t, B] list detailed information of compressed files [technical, bare] x decompress to the complete path <选项> -Stop scanning the option ad append the file name to the target path ag [format] use the current data to generate the compressed file name ap Set the path inside the file as synchronous file directory av set authentication detection (only the registered version provides this function) av-disable authentication detection www.2cto.com c-close remarks show cfg-close read settings cl conversion name to lowercase letter cu conversion name to uppercase letter df compression then delete original file dh open shared file ds close sort the names of solid files. dw: compress and then erase files. e [+]: set file exclusion and include attributes. ed: Do not add an empty directory. en: do not set file end block. ep name does not contain path ep1. the name does not contain the basic file directory ep3. expand the path to the fully contained drive name f refresh the file hp [password] encrypted file data and file header id [c, d, p, q] disable message ierr send all messages to standard error output ilog [name] record error log to file (this function is only available for registered version) inul close all messages isnd open sound k lock compressed file kb keep decompressed corrupted file m <0 .. 5> set the compression level (0-storage... 3-default... 5-Max) mc Set advanced compression parameter md Dictionary size in KB (64,128,256,512,102, 4096, or A-G) MS [ext; ext] stores the specified file type n Only contains the specified file n @ read the file name from the standard input to the contained content n @ In the specified list file, the file o [+ |-] is included. in rewrite mode, ol saves the symbolic connection for the file as a connection or automatically renames the file. ow saves the owner of the live storage file and the group p [password] set password p-do not ask password r perform recursive operation on the subdirectory r0 only use the wildcard name to perform recursive operation on the subdirectory rr [N] add data recovery record rv [N] create recovery s [ , V [-], e] create a solid archive compression s-close the solid archive compression SC [Obj] set the specified string sfx [name] to create SFX file si [name] to read data from standard input sl The size of the processed file is smaller than the specified value sm The size of the file to be processed is greater than the specified value t. Process the files modified after the specified date, Format: YYYYMMDDHHMMSS tb Process files whose modification date is earlier than the specified date, Format: YYYYMMDDHHMMSS tk keep the initial time of the file tl set the file time to the latest file Time tn Process new filesProcess ts files older than the specified time [N] storage or storage time (modify, create, access) u update file v create automatic volume or list all volumes v [K, B] create a specified volume size = * 1000 [* 1024, * 1] ver [n] file version control vn uses the old Volume naming system vp to suspend w before each volume Specify working directory x Exclude specified file x @ exclude file name read from standard input x @ From the specified list file, specify the excluded file y and set all the answers to yes z [file]. note: rar <命令> Some do not contain "-", only <选项> Some of them contain "-". pay attention to this. Example 1: add a file or directory to the compressed file and use the command. For example, run the or m command to upload the file1 file to abc.rar. after compression, the command will delete the original file1 file. note: the m command only operates on files.) # rar a abc.rar file1 description: if a file named file1 already exists in the file named "Taobao", the file named "file1" is updated. In addition, the original file1 file still exists in the current directory. to move the file1 file to file1.rar, run the m command. you can also perform this operation on the directory. Note: If you only enter the "rar a file1.rar" command but do not have a file name or directory name, all the files and directories under the current directory will be compressed into the file1.rar file. Pay attention to this. Example 2 of www.2cto.com: decompress the content in the abc.rarfile. you can use the EOR xcommand. assume that the directory abc.rar contains a file named file1 and a directory named test. The Directory test contains a file named file2. # rar e abc.rar description: use the ecommand to decompress the file1 file in abc.rar together with the file2 file in the test directory to the current directory. If you want to keep the directory structure in the abc.rar Directory, use the x command. # Rar x abc.rar note: The file1 file and the test directory will be decompressed to the current folder. Example 3: add a comment for the entire compressed file # rar c abc.rar note: After you enter this command, Processing archive test.rar Reading comment from stdin is displayed at the bottom of the screen and a cursor is blinking, enter the comments from the blinking position of the cursor. press Ctrl + D. input Example 4: add comments to a single file in the compressed file. run the cf command. If you want to add a comment for the file1 file in the abc.rar file # rar ch abc.rar file1, the screen will display the Reading comment for abc.rar at the bottom: file1 from stdin flashes from the cursor to enter the comments you want to add to file1. Ctrl + D end input Example 4: write the comments of the entire file into a file and use the cw command. Add the abc.rar comment to the test.txt file # rar cw abc.rar test.txt description: if a file named test.txt does not exist in the current directory, you will create a file named "文. Example 4: delete the file or directory in the compressed file and run the d command. For example, delete the file1 file in the abc.rar file. # Rar d abc.rar file1 note: this command deletes the file1 file in the abc.rar file, which is also valid for directories. The preceding are common compression and decompression commands, <选项> I will not introduce the use of this part. please try it by yourself. Unrar command: # unrar -- help usage: unrar - - <@ Listfiles...> <命令> E. decompress the file to the current directory l [t, B] to list the compressed file information [technical, bare] p print the file to the standard output t test compression I am Russian when v [t, b] listing detailed information about the compressed file [technical, bare] x the command to extract the file to the full path unrar has the same effect as rar, it can be seen that unrar only contains a part of rar commands, so you can use rar to complete all operations.
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.