How to use Rar compressed file package in Linux

Source: Internet
Author: User
Download RARforLinux: http: wwwrarlabcom the downloaded file is a rarlinux-360targz, save it ~ Downloads directory 2 decompression package I want

1. download RAR for Linux

: Http://www.rarlab.com

The downloaded file is rarlinux-3.6.0.tar.gz and saved ~ /Downloads Directory

II. decompress the software package

I want to decompress the file to the/opt directory, but the/opt directory only has the write permission for the Super User.

[Songyadong @ walter downloads] $ su

Extract the tar command to the/opt directory and generate the rar directory in/opt.

[Root @ walter downloads] # tar xzvf rarlinux-3.6.0.tar.gz -- directory =/opt

3. create a symbolic link

View the/opt/rar directory and find that there are already two programs, rar and unrar, which can be used directly without compilation. for ease of use, create two symbolic connections in/usr/bin, and you can directly use the rar and unrar commands on the terminal.

[Root @ walter downloads] # ln-s/opt/rar/usr/bin/rar

[Root @ walter downloads] # ln-s/opt/rar/unrar/usr/bin/unrar

Note that the preceding two commands must also be executed by the Super User. after the operation is completed, exit the Super User. if you do not use the preceding concatenation symbol, you can add the rar command to the environment variable.

The procedure is as follows:

> PATH = $ PATH:/opt/rar

> Export PATH

Note:When adding a PATH, you must add a PATH after PATH = $ PATH. Otherwise, the system's environment variables will be damaged.

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.