Directory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsZip is a widely used compression program under the Linux system, and the file is compressed with a ". zip" extension. The zip command is used to compress the file into a common zip format, and the unzip command is used to extract the zip file.Back to CatalogCommon parameters IntroductionThe common parameters of the zip co
Encountered the database can not find the cause of the problem, can only find the log, find the log when the old log is compressed, only to try to extract the A large amount of data, only in production decompression, and then to find The file name is *.tar.gz, and your blog has previously documented the decompression method: Http://www.cnblogs.com/garinzhang/archive/2013/04/23/3037147.html Use TAR–ZXVF *.tar.gz can not decompress, obviously good tar.gz file can this decompression, why not
The unzip is usually available when using Linux, but it may not be available in the system after a minimal installation.Yum List unzip see if the installationIf not installed, continue yum install unzipAfter installation, you can use the zip and unzip commands to compress and decompress the zip file!Syntax: Unzip [-cfl
Linux unzip command for extracting Zip files
Unzip is the decompression program for the. zip compressed file.
Grammar
Unzip [-cflptuvz][-agcjlmnoqsvx][-p
Parameters:
-C Displays the uncompressed results to the screen and converts the characters appropriately.
-F to update existing files.
-L Displays the files contained within the compressed file
information. $ Gzip-dv * mm.txt.gz 43.1% ----- replaced with mm.txt sort.txt.gz 43.1% ----- replaced with sort.txt xx.com.gz 43.1% ----- replaced with xx.com $ ls mm.txt sort.txt xx.com Example 3: detailed information of each compressed file in Example 1 is displayed without decompression. $ Gzip-l * compressed uncompr. ratio uncompressed_name 277 445 43.1% mm.txt 278 445 43.1% sort.txt 277 445 43.1% xx.com $ ls mm.txt.gz sort.txt.gz xx.com.gz Example 4: to compress a Tartar file, for example,
decompression.
$ Gzip-L *
Compressed uncompr. ratio uncompressed_name
277 445 43.1% mm.txt
278 445 43.1% sort.txt
277 445 43.1% xx.com
$ Ls
Mm.txt.gz sort.txt.gz xx.com.gz
Example 4: compress a Tartar file, for example, usr.tar. the extension name of the compressed file is .tar.gz.
$ Gzip usr.tar
$ Ls
Usr.tar.gz
Unzip command
How can I expand files compressed by WinZip in Microsoft Windows in Linux? You ca
Example 3: detailed information of each compressed file in Example 1 is displayed without decompression.
$ Gzip-L *
Compressed uncompr. ratio uncompressed_name
277 445 43.1% mm.txt
278 445 43.1% sort.txt
277 445 43.1% xx.com
$ Ls
Mm.txt.gz sort.txt.gz xx.com.gz
Example 4: compress a Tartar file, for example, usr.tar. the extension name of the compressed file is .tar.gz.
$ Gzip usr.tar
$ Ls
Usr.tar.gz
Unzip command
How ca
extension:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is installed, you can use the jar command and the
file. cpioCpio-divc file. cpio. RPM/install rpm-I file. rpm. RPM/extract rpm2cpio file. RPM | cpio-Div. Deb/install dpkg-I file. Deb. Deb/exrtact dpkg-Deb-fsys-tarfile file. Deb | tar xvf-Ar P file. Deb data.tar.gz | tar xvzf-. Zip unzip file.zip
Bzip2-D myfile.tar.bz2 | tar xvf
Tar xvfz myfile.tar.bz2
X is decompressionV is a complex output.F is the specified fileZ gz format
GzipGzip [Option] file name to be compressed (or decompressed)-C writes the
Two commonly used decompression commands: Unrar and unzip, respectively, corresponding to two WinRAR and WinZip software on the Windows platform.[Email protected] ~]# Cd/usr/local/tomcat/webapps[[email protected] webapps]# unrar x Studentnavigation.rar # extract to current directory[[email protected] webapps]# unrar x Stunumber.rar # extract to current directory[[email protected] WebApps] #
Reason:Java encoding of the text is based on Unicode, so if Zipinputstream and Zipoutputstream to deal with the compression and decompression work, encountered in the Chinese file name or path, it is of course the Unicode to deal with ROM. However, now on the market compression and decompression software, such as WinZip, but does not support Unicode, a file name in Unicode-encoded file, it will not be processed.
So how do you make the compression file
displayed without decompression. $ Gzip-l * compressed uncompr. ratio uncompressed_name 277 445 43.1% mm.txt 278 445 43.1% sort.txt 277 445 43.1% xx.com $ ls mm.txt.gz sort.txt.gz xx.com.gz Example 4: to compress a Tartar file, for example, usr.tar. the extension name of the compressed file is .tar.gz $ gzip usr.tar $ ls usr.tar.gz unzip. How can we use the Microsoft Windows compression software winzip to
:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is installed, you can use the jar command and the unzip
directory, do the following to achieve the same effect.Zip–q–r Html.zip HTMLFor example, now my HTML directory, I manipulate the zip compression command isZip–q–r Html.zip *The above is done in quiet mode, and contains system files and hidden files//////////////////////////////////////////////////////////Unzip syntax:Unzip [-cflptuvz][-agcjlmnoqsvx][-p Additional note: Unzip is the
-Bash: Unzip: CommandNotFound:-bash: unzip: commandnotfound error occurs when unzip command is used for decompression. Unzip -- the command is not found because unzip is not installed. A command can be used to solve the problem. Command: yuminstall-yunzipzip.
-Bash:
-Bash: Unzip: CommandNotFound:-bash: unzip: commandnotfound error occurs when unzip command is used for decompression. The unzip mdash; command is not found because unzip is not installed. A command can be used to solve the problem. The Command is...-Bash:
In this tutorial, I'll show you how to compress and decompress files within an iOS app. We will use a third-party library called Ziparchive to implement this function. Although there are other solutions for compressing and decompressing files, I feel that ziparchive is the fastest and easiest to use.Why do I need to unzip the file?That's a good question. There are a number of reasons why your application needs to support compression and decompression
Decompress the zip file syntax: unzip0000-cflptuvz00000000-agcjlmnoqsvx00000000-p
[[.Zip file] [file] [-d
] [-X
] Or unzip [-Z] Supplement: unzipis the decompression program for. ZIP compressed files. Parameters:-c displays the extracted results on the screen and converts the characters properly. -F: update an existing file. -L displays the files contained in the compressed file. The-p parameter is similar to the-c parameter. the decompr
Business has a need to do file operations, through PHP and Shell Interactive implementation
System (), Shell_exec () performs other systems such as Mv,cp,list, and PHP sets the appropriate security configuration to allow PHP system functions to operate, but it is not always successful when extracting a zip file.
Permissions are also changed to all permissions through A+w.
The commands I've tried are as follows
shell_exec("unzip " . BASE_PATH . "test/
Linux compression and decompression (zip, unzip, tar) detailed2012-05-09 13:58:39| Category: Linux | Tags: Linux zip unzip tar linux command detailed | report | font size SubscriptionDownload Lofter my photo book |Recently often on the Linux packaging compression decompression, collected from the Internet and combined with their own common, share with you under, nonsense not much to say, into the topic.1, Z
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.