[Turn] linux extract the zip and rar

1) For .zip

Provided under linux zip and unzip the program, you can simply yum install unzip, zip is a compression program, unzip a decompression program. They parameter options are many, here only briefly, its usage is still an example to illustrate:

?
1
# zip all.zip *.jpg

This command is all .jpg files compressed into a zip package

?
1
# unzip all.zip

This command is to extract from all the files in the all.zip

2) For the .rar

To be treated under linux .rar file, you need to install RAR for Linux, can be downloaded from the Internet, but remember, RAR for Linux is not free; RARfor Linux can be downloaded from http://www.rarsoft.com/download.htm 3.2 
0, then install:

Link: https: //pan.baidu.com/s/1ECj46FDW8R6yQpQXjKy6LA
extraction code: p61s

?
1
2
3
# tar -xzpvf rarlinux-3.2.0.tar.gz
# cd rar
# make

This installed, after installing rar and unrar with both programs, rar is a compression program, unrar is decompression procedures. They parameter options are many, here only briefly, its usage is still an example to illustrate: 

?
1
# rar a all *.jpg

This command is all .jpg files compressed into a rar package, called all.rar, the program will .rar extension is automatically appended to the package name.

?
1
# unrar e all.rar

This command is to extract from all the files in the all.rar

Excerpt: https://www.jb51.net/LINUXjishu/43356.html

Guess you like

Origin www.cnblogs.com/vaon/p/11326462.html