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 descriptions
1. I want to compress
During website migration, too many files in the website directory will consume a lot of time, so we need to use the compression and decompression commands, such as, I need to back up the/home/wwwroot folder, however, because wwwroot contains tens of thousands or even more files, you need to use the zip command to compress the wwwroot file and then transfer it:
CD/wwwroot
using zip commands to compress and decompress files in LinuxTransferred from http://www.itivy.com/linux/archive/2012/3/22/linux-zip.html
In Windows, we use the most of the decompression software is winrar, this software is very convenient for us to achieve decompression. However, if you are in a Linux system, we can also try to use the command to achieve the decompression of the
for the file ending with tar.bz2
Tar-xjf all.tar.bz2
6) for files ending with. Z
Uncompress all. Z
72.16.tar. Z
Tar-xzf all.tar. Z
In addition, Linux also has corresponding methods to decompress the compressed file .zipand .rar under windows.Guys:
1)for. Zip
Linux provides zip
Compress (zip) and decompress (unzip) commands in Centos
When using ftp to back up data, it takes a lot of time because there are too many files, so we need to use the compression and decompression commands, for example, I need to back up the/opt/data folder, however, since there are tens of thousands of files in data, you need to use the zip command. For detail
When using ftp to back up data, it takes a lot of time because there are too many files, so we need to use the compression and decompression commands, for example, I need to back up the/opt/data folder, however, since there are tens of thousands of files in the data file, you need to use the zip command at this time. for details, see data file compression and tra
parameter, but in addition to updating existing files, other files in the compressed file are also extracted to the directory.
-V displays detailed information when executing the command.
-Z only displays the remarks of the compressed file.
-A performs necessary character conversion on text files.
-B. do not convert characters in text files.
-C: The file
How to Use Python to compress and decompress zip files
This article mainly introduces how to use Python to compress and decompress zip files. It mainly uses the zipfile package. For more information, see
Python zipfile provides a very convenient way to compress and decompress
/*Provides the ZIP file decompression interface:Adapterzipfile:Input: zipfilename (absolute path of the ZIP file) and outputdirectory (storage path of the ZIP file after decompression)Output:Description: initialization FunctionUnz
C #. NET uses the third-party class library DotNetZip to decompress/compress the Zip rarfile,
DotNetZip on CodePlex: http://dotnetzip.codeplex.com/
For details, see the source code ...... In short, it feels better than SharpZipLib. In addition, DotNetZip supports VB, C #, and any. NET language.
Compression:
// Define the file path string filename = @ "d:/test.rar
In. NET 2.0, you can use sharpziplib, an open source DLL, to easily decompress ZIP files and GZ files.
You can download sharpziplib here.
The following describes the specific code:
1. Unzip the ZIP file:
Namespace: icsharpcode. sharpziplib. Zip
Private Static void uncompres
Keywords: Decompress the ZIP file
Even though this problem occurs, you need to decompress the ZIP file and read the data of the. txt and. INF files in the compressed package. After JDK helper and Google, the problem can be solve
From: http://www.cnjm.net/tech/article4729.html
The super short and concise zip decompression class has only 280 lines of Java code. After obfuscation and compression, the class file is only about 4 K, which is especially suitable for the development of j2s.
The decompression algorithm comes from the famous gzip. Java on the Internet. I only added the Section for parsing the
After the end of Ubuntu, download a ADT to work and learn, download the discovery is a. zip format of the compression package, not common. tar.gz just used a few tar orders, just to try,
1 TAR-VXTF Adtxxxx.zip
Result error prompt
Gzip:stdin has more than one entry--rest ignored Tar:child returned
status 2
tar:error are not recoverable:exit ING now
Baffled, but also thought that half of the bottle with the wrong, search a few other matching parameter
How to create and decompress zip, tar, tar.gzand tar.bz2 files in Linux, tar.gztar.bz2
Data Compression has been very useful for us over the years. Whether it is a zip file used for sending images in an email or compressing data files on the server, we can make the download easier or more effective to save disk space.
to be shared to Windows users. If you only share it with the linuxlinuxuser to access macusers, I prefer to select the tar.gz format.
ZipZip may be the most commonly used File compression format. It is used on different operating system platforms, such as Linux, windows, and Mac OS. The compression rate is not very high, and tar.gzand tar.gz 2 are very good in terms of compression rate. Let's start with the question:We can use the following comm
C #. NET uses the third-party class library DotNetZip to decompress/compress the Zip rarfile,
DotNetZip on CodePlex: http://dotnetzip.codeplex.com/
For details, see the source code ...... In short, it feels better than SharpZipLib. In addition, DotNetZip supports VB, C #, and any. NET language.
Compression:
// Define the file path string filename = @ "d:/test.rar
Reprinted from: http://blog.tangjianwei.com/2009/01/02/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/
Data Compression has been very useful for us over the years. Whether it is a zip file used for sending images in an email or compressing data files on the server, we can make the download easier or more effective to save disk space. Some com
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 exampl
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.