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