Under the Linux system, there is no command to RAR file operation, if need file operation to RAR format, we need to install third party software RAR and Unrar.
1, linux rar management software Download the official address is:http://www.rarlab.com/
2, we can download and install according to the following command, here i download linux_x64 latest version of RAR software---rar 5.21 Beta 1 for Linux x64
[Email protected]5201351wget http://www.rarlab.com/rar/ rarlinux-x64-5.2.1b1.tar.gz // download rarlinux software [[email protected]5201351tar XF rarlinux-x64-5.2. 1b1. tar. GZ // decompression Rarlinux
3, after decompression we can find that there is a RAR directory, we can go into the RAR directory to the Rarlinux software into the compilation installation.
[[email protected]5201351 ~]# CD rar[[email protected]5201351 make //Compile and install the make file, you need to install the make package to
So the software is installed, in fact, this make is very interesting, we first look at the contents of the makefile file, as shown in:
From the makefile file content can be seen, actually useful only 4 files
The rar and Unrar Two executables are moved to the/usr/local/bin directory, the rarfiles.lst configuration files are moved, and the default.sfx File to the appropriate directory.
4, when we installed RAR, now to do is the RAR file compression and decompression. The common operations commands are as follows:
[[email protected]52013515201351. rar // view action V[t[a],b] verbosely list Archive contents [Technical[all],bare] [Email protected]520135152013515201351/ // compress the 5201351 directory into 5201351.rar [[email protected]52013515201351. rar // unzip the 5201351.rar to the current directory, or you can add the table of contents directly behind
5, for the RAR format file The most commonly used operations on the above three, as for other operations, can be in the Linux system, direct input RAR or Unrar directly after the return, there will be helpful hints.
About the unzip operation of the RAR file under Linux