Original: http://www.linuxdiyf.com/viewarticle.php?id=193969
Note: Just want to know how to extract the RAR format friends can jump directly to the back, but note to install the 7zip rar module another: Linux can also be installed Unrar to extract
How to decompress rar and zip files in Centos
Zip-r data.zip data
Explanation: The data folder is compressed into the data.zip format.
Unzip data.zip
Description: Decompress the data.zip file to the current folder.
Below are some detailed
operation of the ============zip file ==================================Zip-r Data.zip DataExplanation: The data folder was compressed into the data.zip format.Unzip Data.zipExplanation: Extract the Data.zip file to the current folder.---------------
Linux under RAR command detailedUsage: RAR - ....-
A
Adding files to compressed files
C
Add a compressed file comment
Cf
Add a file comment
cw
Write a compressed file
Using system;
Using system. Collections. Generic;
Using system. text;
Using system. IO;
Using Microsoft. Win32;
Using system. diagnostics;
Namespace uni. unicustoms{Public class clswinrar{/// /// Whether WinRAR is installed/// /// Static public
On windows, there is a convenient rar compression and decompression tool. in linux, whether as a PC or server, sometimes some rar compressed packages will be downloaded, we need to decompress it. By default, linux does not support rar. we need to
RAR compression algorithms are not publicly available, so there are not many open-source projects in this regard
Fortunately, an open-source project named unrar supports extracting RAR files, but cannot compress rarfiles.
However, the direct use of
BackgroundAs the company's CMS system, only accept files compressed in RAR format, so it is impossible to directly use the ZIP compression components provided in the Nodejs. Only from the WinRAR software to start, but there is not much on the
CentOS installation RAR
On windows, there is a convenient rar compression and decompression tool. In linux, whether as a PC or server, sometimes some rar compressed packages will be downloaded, we need to decompress it. By default, linux does not
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.