From: http://www.ezloo.com/2008/01/linux_zip_unzip.html
The basic usage of the zip command is: Zip [parameter] [file 1] [file 2]
Simple Example:
Pack the testfile in this directory into the test.zip file: Zip test.zip test/*. If a
+ system.getproperties (). GetProperty ("File.separator");for (int i = 0; i {Zip (out, fl[i], base + fl[i].getname ());}}Else{//Compress all files in the directoryOut.putnextentry (new Org.apache.tools.zip.ZipEntry (base));ZipEntry zipentry=new ZipEntry (base);Zipentry.setunixmode (644);//Solve Linux garbledOut.putnextentry (ZipEntry);FileInputStream in = new FileInputStream (f);int b;while ((b = In.read ())! =-1){Out.write (b);}In.close ();}}private
and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6. instruction Example: Gzip *% compress each file in the current directory into a. gz file. GZIP-DV *% extracts each compressed
Mysql5.7.17 winx64.zip unzip version installation configuration graphic tutorial,
1.download mysql-5.7.17-winx64.zip;
Link: https://pan.baidu.com/s/1tTqT2sn7cEaOwEvrQ-LrHg password: i444
2. decompress the package to a folder (for example ):
Decompress the package to the current folder.
3. modify the configuration file
The examples in this article describe the Python zip and unzip data methods. Share to everyone for your reference. The implementation methods are 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 45 46 47 48 49 50 51 52
# zipping and unzipping a string using the Zlib module # A very large string could be
This example describes the Python zip and unzip data methods. Share to everyone for your reference. The implementation method is as follows:
# Zipping and unzipping a string using the zlib module# a very large string could be zipped and saved to a file speeding U P File Writing time # and later reloaded and unzipped
, display the filename and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6.instruction Example:Gzip *% compress each file in the current directory into a. gz file. GZIP-DV *% extracts
Linux decompression widows compressed files are likely to encounter garbled problems, did not find a good way to temporarily put together a curve to the salvation of the method used.For example, unzip the zip file and use the following command:Unzip-o Character Set Xxxx.zipThe character set can be gb18030,cp936Extracted files If there is garbled, with the configu
Article turned from: http://www.jb51.net/LINUXjishu/105916.html1. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录2. Unzip the mydata.zip under the/home directory into the Mydatabak directoryUnzip mydata.zip-d Mydatabak3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4. Extract the Www
Tags: content folder use check gid JPG results user parameters1. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录2. Unzip the mydata.zip under the/home directory into the Mydatabak directoryUnzip mydata.zip-d Mydatabak3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4, the Home/home di
Tar is a linux system command, format: tar [main option + Secondary options] file or directory.Tar command1. The tar command is a reliable way to back up files in a unix/linux system and works in almost any environment, with permissions for all users.2. Format tar [main option + Secondary options] file or directory3. Main parametersWhen using this command, the ma
objTarget.Items.Count > 0
End Sub
To extract the code:
Copy Code code as follows:
UnZip "D:\test.iso", "D:\test.zip"
Msgbox "OK"
Sub CopyFolder (ByVal mysourcedir, ByVal mytargetdir)
Set fso = CreateObject ("Scripting.FileSystemObject")
If not FSO. FolderExists (Mysourcedir) Then
Exit Sub
ElseIf not FSO. FolderExists (Mytargetdir) Then
Fso. CreateFolder (Mytargetdir)
End If
Set Objshell = CreateObject ("Shel
Tags: style blog tar ext c color20140220-mysql the installation (using Zip Unzip the green installation method)Google input MySQL can directly find the official website. Download the green version. Select: MySQL Community Server . If you have already installed the MySQL You can do this first:( 1 ) Stop MySQL of services: net stop MySQL (no semicolon required)( 2 ) Removal MySQL of services: mysqld Remove (n
in the compressed file -P: Similar to the-c parameter, the uncompressed results are displayed to the screen but no conversions are performed -T: Check that the compressed file is correct -u: Similar to the-f argument, However, in addition to updating an existing file, other files in the compressed file are extracted t
Gzip Command: File compressionGzip is GNU software and is the preferred compression tool for Linux systems, and the-Z option compression of the TAR Archive command also uses Gzip/gunzip to compress/unzip files.gzip Generate. gz fileGrammar:gzip [options] [File or directory ...]Parameters:-C or--stdout or--to-stdout to output compressed (decompressed) content to t
Liunx DeleteDelete Folder instance: Rm-rf/var/log/httpd/access will delete the/var/log/httpd/access directory and all files and folders under it2 Delete File Usage instance: Rm-f/var/log/httpd/access.log will force the deletion of/var/log/httpd/access.log this fileLiunx tar.gz extract to the specified directory1. Compress the command:Command format: TAR-ZCVF compressed file name. tar.gz Compressed
Generally speaking, zip is more general, whether under Windows or Linux, zip can be easily compressed and decompression.Here are two more commonly used compression commands and decompression commands.Compress
Zip Mypackge.zip-r/var/test/
Compresses all files in the/var/test/directory, including subfolders and files, into Mypackge.zip
-R represents a recursive
1. See http://www.codeproject.com/KB/files/zip_utils.aspx
2. Include the header file # include "Zip. H", # include "Unzip. H", which is already detailed in the original article.
3. It is emphasized that the number of bytes must be increased by 1 when extracting data to the memory.
Hzip Hz = openzip (filename, 0); // read the
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.