-O to set the latest change time for all files in the compressed file to the time of compression
-x specifies that you do not process which files in the. zip archive
-I only compress files that match the criteria
-F attempt to repair corrupted compressed file
-D does not establish directory names in compressed files
-A adjust
Example: compressing the contents of the current directory on the server as a xxx.zip fileZip-r xxx.zip./*Unzip the zip file to the current directoryUnzip Filename.zip============================Another: Some servers do not install the ZIP package does not execute the zip co
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 proc
of the disk on which the first compressed file is stored.-
two. Unzip commandFunction Description: Unzip extract zip file commandSyntaxParameters-C Displays the uncompressed results to the screen and converts the characters appropriately.-F to update existing files.-L Displ
file within the compressed file is correct-# The compression level is a number between 1-9Unzip command-X "File list" unzip the file but does not include the file specified in the file
that are contained in compressed files.-L Changes all the file names in the compressed file to lowercase.-M sends the output to the more program processing.-N Do not overwrite the original file when extracting.-O do not need to ask the user first, unzip overwrite the original file
Zip is probably the most used document compression format. Its greatest advantage is in the use of different operating system platforms, such as Linux, Windows and Mac OS. The downside is that the compression ratios are not very high, and tar.gz and TAR.GZ2 are doing very well in terms of compression. Gossip less, let's get to the point:We can compress a directory with the following commands:#
–XVF File.tar//Unpacking the TAR PackageSummarize1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF decompression4, *.bz2 with bzip2-d or with BUNZIP2 decompression5, *.tar.bz2 with TAR–XJF decompression6, *. Z Extract with Uncompress7, *.tar. Z Extract with Tar–xzf8, *.rar with Unrar e decompression9, *.zip with unzip decompressionZip:Compressio
Install zip, unzip, g ++, and other software in linux.
Recently, the company has configured a new 64-bit ECs instance. during deployment, it found that the zip/unzip compression and decompression software was not installed.
So I had to install these two software on my own. The best way to use linux is yum. The two comm
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
/shell.txtDeleting:test/shell.txt
using the- u parameter, the modified/test/99.sh file is updated to update the changed information into the Test3.zip package
[[email protected] app]# zip- u test3.zip/test/99.shupdating:test/99.sh (deflated 30%)
If you have more files in the test
Run the following commands in the/home directory: cd/home # go to the/home directory. 1. compress the mydatadirectory under the/home directory into mydata.zipzipzip-rmydata.zip mydata # compress the mydata Directory. 2. run the following commands in/home: directory operations
Cd/home # enter the/home directory
1. compress the mydatafile under the/home directory as mydata.zip.
Zip-r mydata.zip mydata # compress the mydata Directory
2. decompress mydata
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
"; Check for files that are not present in zip and return these files @Scheduled (cron= "0/10 * * * *? ") public void Searchzipfile () {log.info (" Unzip user photo task start execution "); list Ziputil.javaPackage Com.hupu.smart.user.service.util;import Java.io.file;import Java.io.fileoutputstream;import Java.io.ioexception;import Java.io.inputstream;import Java.io.outputstream;import Java.u
ZIP-RP 1234 Test.zip Test.txt
-R means recursively all subdirectories
-p means the password is 1234.
UNZIP-P 1234 Test.zip//extract to current directory
Description of parameters related to zip and unzip
Zip [parameters]
Packaging files using
MySQL-5.6.13 unzip version (zip version) Installation configuration tutorial [Download MySQL5.6.13] From MySQL official website mysql.com find MySQLCommunityServer5.6.13 for dev. mysql. comdownloadsmysql, here you can choose the operating system platform. Hong Ge chose Microsoft Windows. There are three
MySQL-5.6.13 unzip version (
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
Install zip, unzip, g ++, and other software in linux
Recently, the company has configured a new 64-bit ECs instance. during deployment, it found that the zip/unzip compression and decompression software was not installed.
So I had to install these two software on my own. The best way to use linux is yum. The two com
Zip and unzip data in python
This document describes how to use python zip and unzip data. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
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.