Many people like Mac know that this OS does not like win on WinRAR or hao123 decompression and other similar software, for the compression and decompression of files is not convenient, after downloading RAR file package will be helpless, it is extremely embarrassing, in order to avoid this situation, self-help, clothed. Go to http://www.rarlab.com/download.htm this site to download the unpacking Kit RAROSX for Mac environments.
The following shows how to use RAR command-line operations in Mac OS X systems:
1. First download the Rar/unrar tool from the Rarlab website;
2. Unzip the downloaded tar.gz compressed package (tar xvf rarosx-5.2.0.tar.gz), automatically create a rar directory under the download directory downloads, which has the Rar/unrar file;
3. Enter Terminal (Command Window control+ space)
4. Go to the newly unzipped RAR directory and use CD Downloads/rar to enter;
5. Install the Unrar and RAR commands separately using the following command:
Install unrar command: sudo install-c-o$user unrar/bin
Install rar command: sudo install-c-o$user rar/bin
6. Test unrar and RAR commands;
Decompression command: Unrar x compressed-package.rar
Unzip the Xxx.rar compressed package, if the file name has a space, you need to use single quotation marks wrapped up as: ' xxx Xx.rar '
How to decompress and compress RAR files on Mac