Apache commons compress is a class library for compressing and decompressing files.
You can operate files in Ar, cpio, Unix dump, tar, zip, Gzip, xz, pack200 and Bzip2 formats with powerful functions.
Here, we will write two methods to compress files into ZIP files and decompress files from ZIP files using commons
is correct-U: Similar to the-f parameter, but other files in the compressed file are extracted to the directory in addition to updating the existing file-V: Show detailed information when performing Yes-Z: Show only notes text for compressed files-A: Necessary character conversions for text files-B: Do not convert text files to characters-C: File names in compre
The problem was discovered by chance when this compilation was published in the previous period:
Zip error:invalid Command Arguments (cannot repeat names in zip file) Make: * * * [out/target/product/k200_hdmiin/system/etc /recovery-resource.dat] Error 16make: * * * waiting for unfinished jobs ....
Background
the beginning of the file name. If you want to hide a directory file, you only need to set the dot before the name of the directory file in the previous English state. Such as. Unix. This indicates that the folder is a hidden file or a hidden folder.
How can I view this hid
of using the tar command, found that the tar command for Chinese users have a serious problem: The file name is Chinese characters and long files can be archived packaging, but can not solve the file package.
For example:
1 first create a long Chinese character file name
released in April 19 this year. To be exact, zlib may not be a library for ZIP files, but a library for gzip and deflate algorithms. It provides an example called minizip (contrib/minizip) to show how to operate the ZIP file. Starting from zlib, We will summarize two dummies:
Bool zipcompress (maid, maid );Bool zipextract (maid, maid );
Source
Ziparchive;if ($zip->open (' test.zip ') = = TRUE) {$index = $zip->locatename (' example.php ', ziparchive::fl_nocase| ZIPARCHIVE::FL_NODIR);$contents = $zip->getfromindex ($index);}?>
The above index depends on the Locatename method, if the compressed package within multiple paths with the same name file, i
file.
The Code is as follows:
$ Zip = new ZipArchive;If ($ zip-> open('test.zip ') === TRUE ){Echo $ zip-> getFromName ('example. php ');$ Zip-> close ();}?>
If example. php is in a directory, you must add a path to obtain the content
attributes. For Linux, run the unzip-V command to view the details of a zip package, including the encryption algorithm .)
-Know the continuous content of a file in the compressed package (at least 12 bytes)
-Luck
Step 2-cracking
If you have discovered the internal content of the encrypted file on a website, you can
The UNIX command set is a very distinctive set of commands. It is designed to be used to fully control UNIX machines. This section will discuss part of the UNIX command set. This section focuses on UNIX commands that are frequentl
The "preface" is explained in the blog post:This article will introduce through the personal tone of the Linux platform related compression and decompression command related knowledge, in the current time point "May 23, 2017 " under the grasp of the technical level is limited, there may be a lot of knowledge understanding is not deep enough or comprehensive, I hope you point out the problem of common exchange, In the follow-up work and study, if found
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
meaning of the update file.# TAR-TF All.tarThis command is to list all the files in the All.tar package,-T is to list the meaning of the file# TAR-XF All.tarThis command is to solve all the files in the All.tar package,-X is the meaningCompressionTAR–CVF Jpg.tar *.jpg//package all JPG files in the directory into tar.j
7-Zip Introduction
7-Zip is a compression software that claims to have the highest compression ratio today. It not only supports the unique 7z file format, but also supports a variety of other compression file formats, including ZIP, RAR, CAB, GZIP, BZIP2, TAR, etc. The co
?Why do I use Notepad on Windows to open UNIX files without line breaks?(4) how to delete spaces or tabs at the end of a file row?How can I convert a tab from a file to a space or a space to a tab?How do I convert the first tab of a line to a space?...
2. Analysis and solutions:(1) how to view the binary format of a file
program to which the breakpoint is set. THREADNO Specifies the ID of the thread, note that this ID is assigned by GDB and can be viewed through the "Info Threads" command to view the thread information in the running program. If you do not specify thread, the breakpoint is set above all threads. You can also specify a breakpoint condition for a thread. Such as:(gdb) Break frik.c:13 thread Bartab > LimWhen your program is stopped by GDB, all running t
GrammarZip [parameters] [file name after packaging] [packaged directory path]Parameter list-a convert the file to ASCII mode-F attempt to repair corrupted compressed file-H Display Help interface-M after compressing the file, delete the source file-N specific string, does no
http://apps.hi.baidu.com/share/detail/37384818Download ADT linkHttp://dl.google.com/android/ADT-0.9.6.zipDownload SDK linkhttp://dl.google.com/android/android-sdk_r11-linux_x86.tgz (Can get detailed file name through FQ, and then download via link)Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageT
original tar package All.tar in the logo.gif file,-U is to indicate the meaning of the update file.# TAR-TF All.tarThis command is to list all the files in the All.tar package,-T is to list the meaning of the file# TAR-XF All.tarThis command is to solve all the files in the
A Brief Study of some basic command line text editing programs that can save time and effort. Text editing is usually performed interactively in the text editor application. However, some tasks can be conveniently and quickly completed directly from the UNIX command line. In addition, you can use these single-command-l
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.