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
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,
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
This article comes from "Stones" blog, http://pengyl.blog.51cto.com/5591604/1191197
Packaging, a combination of many files and directories is saved as a whole package file for easy delivery or portability. The compression operation can further
Zip command usage: Zip [parameters] Parameters to be packaged:-a #将文件转为ASCII模式-f #尝 Try to repair the corrupted compressed file-H--help #显示帮助界面-m #压缩后删除源文件-q #安静模式 does not display specific instruction execution procedures
There are now a bunch of yum install packages that need to be installed, so you want to use a batch installation, the combined installation package is duplicated, so I decided to go firstThe source installation package is as follows:Python-devel
4. Help Commands4.1 Get help info: man(1) Man command
Command name
Man (English literal: manual)
Command path
Usr/bin/man
Execute permissions
All Users
Grammar
man
This article describes the programs that are compressed under Linux, such as tar, gzip, gunzip, bzip2, bunzip2, compress, uncompress, zip, unzip, RAR, Unrar, and how to use them for. Tar,. GZ,. tar.gz,. tgz,. bz2,. tar.bz2,. Z. Tar. Z,. zip,. rar 10
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 compress a file
Common compression commands on Linux Gzip,bzip2,zip/unzip
1. Gzip
Gzip-generated compressed file is *.gzFormat: gzip [-cdtv#] FileMain parameters:-C: Output compressed data to the screen-D: Decompression-T: Used to verify if there are any errors
K-Nearest neighbor algorithm to improve the pairing effect of dating sites One, theoretical study 1. Read the contentPlease be sure to read the "machine Learning Combat" book 1th and 2nd chapters, this section of the experiment by solving dating
In Linux, we usually use the following file compression commands: bunzip2, bzip2, cpio, gunzip, gzip, and split (cut files ), zgrep (find matching regular expressions in compressed files), zip, unzip, tar, rar
In Linux, we usually use the following
Ubuntu14.04Ubuntu is one of the most popular software and version releases. It is well maintained by many local experts and can be said to be the best choice for lightweight users. 14.04 is the latest LTS version and has been released for six months.
This article comes from: The program engineerAs a command-line seeker, you may find yourself repeating the same commands over and over again. If you always go to the same computer with SSH, if you always connect a series of commands, if you always
Tar command-linuxtar command first package the file and then compress it. Other] [mainly talk about tar, others include zip/unzip/rar/unrar] I. package or unpack files: Package/decompress files with the suffix. t... tar command-linux tar command
1. Switch from xterm to term (PTS-> TTY)
CTR + ALT + F1 ~ F6 can be switched to 6 consoles
CTR + ALT + F7 ~ F12 can be switched back to six X terminals
Note: during kernel programming or driver module development, the message is printed to the
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename.Tar.gz and. tgzDecompress: Tar
Linux compression/decompression methods
In linux, there are many compressed packages in a variety of formats, and the command line is not as convenient as in Windows. Sometimes, when extracting files, the command will suddenly be forgotten, fcbu.com
> Display Gong.tar file contents#tar TF Gong.tar./epuinfo.txt./smart/./smart/smartsuite-2.1-2.i386.rpm./smart.txt./tar_creat.txt> Remove files from the tar file to Gong.tar in the current directory#tar XVF Gong.tarCompression/Decompression
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.