Mac command line compression decompression rar file

Source: Internet
Author: User
Tags rar

RAR file decompression is not supported by default in Mac OS x systems. 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 '

Mac command line compression decompression rar file

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.