Linux commonly used compression commands have gzip and zip, two kinds of compression package end different: Zip Compressed after the file is *.zip, and gzip compressed file *.gz; The corresponding decompression command is gunzip and unzipgzip Command:# gzip Test.txtIt will compress the file into a file test.txt.gz, the original file is not, unzip the same# Gunzip Test.txt.gzIt will unzip the file into a fil
Linux commonly used compression commands are gzip and zip, the end of the two compression packages are different: Zip compressed after the file is *.zip, and gzip compressed files *.gz
The corresponding decompression commands are gunzip and unzip.
gzip Command:
# gzip Test.txt
It will compress the file into a file test.txt.gz, the original file is not, the decompression is the same
# Gunzip Test.txt.gz
It will
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
Compression zip under Linux, unzip unzip commandI personally test the summary:Linux installation Unzip zipInstall command: Yum install-y unzip zip# Unzip Yasuo.zipMethod One:Install command: Yum install-y unzip zip1. I want to com
Zip:Compression:Zip [-acddffghjjkllmoqrstuvvwxyz$][-b Extract:Unzip [options] Compress file name. zipOptions:-X file list to unzip the file, but not include the specified file file.-V View the compressed Files directory, but do not press.The-t test file has no damage, but does not understand the pressure.The-D directory unlocks the compressed file to the specified directory.-Z displays only annotations for compressed files.-N does not overwrite files
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original file if the same file exists.Common compression:[Email protected] test]# zip-r test.zip./*All files and folders under the
Recently cleaned up the Linux zip/unzip command, as follows:
Command name: Zip
Function Description: Compress file.
Syntax: Zip [-acddffghjjkllmoqrstuvvwxyz$][-b
Supplemental Note: Zip is a widely used compression program, the file after it compression will produce a ". zip" extension of the compressed file.
Parameters
-A adjusts the executable automatic decompression file.
-b
-C adds a comment for each compressed file.
-d deletes the specif
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that have a ". zip" extension. Parameters-A adjusts the executable auto-unzip file.-b> Specifies the directory where files are temporarily stored. -C adds a comment to each compressed file.-d deletes the specifie
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
not display the instruction execution process.-R recursive processing of all files and subdirectories under the specified directory.-S contains system and hidden files.-t-T checks that each file in the backup file is correct.-U replaces the newer file with the compressed file.-V Displays the instruction execution process or display version information.-V Saves the file properties of the VMS operating system.-W in the file name if the version number, this parameter is only valid under the VMS op
Tags: adjust load. gz different CAL host defaults let tar? ? After compressing files to improve data transmission efficiency, reduce transmission bandwidth, management of backup data has a very important function, so file compression decompression skills become the necessary skills. Compared to the file decompression tool in Windows Flowers Zhengyan, the Unzip tool in Linux is much less, the commonly used decompression commands are gzip,bzip2,tar,zip
Command Line2 zip and unzip, line2unzipCommand Line-ZIP 1. know zip
You can use man zip to obtain the man page of the zip command. The zip command can be used to compress the package file. The compressed file ends with. zip.
man zip
2. Zip Parameters
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
Parameters
Description
-F
Replace files in the compressed package with new files
-U
U
-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/
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.