How to decompress RAR and ZIP files in Linux

Source: Internet
Author: User
Tags rar extension

Linux also has corresponding methods to decompress the compressed files .zipand .rar in Windows:

1: Yu .zip

In Linux, zip and unzip are provided.Program, Zip is the compression program, unzip is the decompression program. They have many Parameter options. Here we will just give a brief introduction and give an example to illustrate their usage:

# Zip all.zip *. jpg (this command compresses all .jpg files into a zip package)

# Unzip all.zip(this command is to extract all files in all.zip)

2: Yu .rar

To process the. rar file in linux, you need to install RAR for Linux. You can download the file from the Internet, but remember that RAR for Linux is not free. Download RAR 3 from http://www.rarsoft.com/download.htm. 60 for Linux, and then install it as follows:

# Tar-xzpvf rarlinux-3.2.0.tar.gz
# Cd RAR
# Make

After installation, there will be two programs, RAR and unrar. rar is a compression program, and unrar is a decompression program. They have many Parameter options. For example, they are used.

# Rar a all *. jpg

This command is to compress all. jpg files into a rarpackage named all.rar. the program will automatically append the. rar extension name to the package name.

# Unrar e all.rar

This command decompress all files in all.rar.

Reproduced from: http://www.linuxdiyf.com/viewarticle.php? Id = 72943

Related Article

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.