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
Linux compression and decompression (zip, unzip, tar) detailed2012-05-09 13:58:39| Category: Linux | Tags: Linux zip unzip tar linux command detailed | report | font size SubscriptionDownload Lofter my photo book |Recently often on the Linux
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
Reprinted from: http://qiupeng.itpub.net/post/8489/55305
Tar command
Tar can create files and directories. Using tar, you can create a file (backup file) for a specific file, change the file in the file, or add a new file to the file. Tar was
The compressed files in linuxlinuxinclude .tar.gz,.zip,.gz. in linux, you must renew the days when .rar is absent. The following example shows how to package the full file name generated after tar-zcvf/home/files.tar.gz/filestar-zcvf is packed:
Zip is a widely used compression program, the file will be compressed after the additional ". zip" the compressed file for the extension. Parameters-A adjusts the executable auto-unzip file.-b Specifies the directory where files are temporarily
The compressed files in linuxlinuxinclude .tar.gz,.zip,.gz. in linux, you must renew the days when .rar is absent.For details, refer to tar and zip commands.Tar-zcvf/home/files.tar.gz/filesThe full path of the file name generated after tar-zcvf is
1. 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
Extract. ZIP file PackageApp.qdupr.Method;ImportJava.io.File;ImportJava.io.FileOutputStream;Importjava.io.IOException;ImportJava.io.InputStream;Importjava.util.Enumeration;ImportOrg.apache.tools.zip.ZipEntry;ImportOrg.apache.tools.zip.ZipFile;/***
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.