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