Linux command (+): RAR command-Unzip

Source: Internet
Author: User

RAR command

Function description

RAR is a common compression format in Windows systems, and this type of compressed file is mainly exchanged with Windows systems instead of compressing or archiving files. Use the following:

rar [Options] ZIP file name

Common parameters

Options Description
E Unzip the file to the current directory
L[T,B] List Compressed Document information
P Print files to standard output
T Test Compressed files
X Unzip the document to the full path
-U Update files into compressed files

Example

     rar is not built into the system, so Yum cannot be installed, and the following shows the installation process

[[email protected] ~]# TAR-ZXVF

[[email protected] ~]# ls

Anaconda-ks.cfg  app  rar  rarlinux-x64-5.4.0.tar.gz  test

[[email protected] ~]# cd rar

[[email protected] rar]# make

Mkdir-p/usr/local/bin

Mkdir-p/usr/local/lib

CP rar Unrar/usr/local/bin

CP rarfiles.lst/etc

CP default.sfx/usr/local/lib

compression of all files and subdirectories in the test directory, except for *.gz files, the compressed files are saved in the current directory

[[email protected] tmp]# ls

Day3.rar Test

[[email protected] tmp]# rar e Day3.rar

[[email protected] tmp]# ls

Day3.rar test the book V1.pdf Track1.mp3


This article is from the "Zhao Dongwei blog" blog, make sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1876275

Linux command (+): RAR command-Unzip

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.