extension:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JD
; Here's how the above code works:1) resolves the path to the documents directory, which is required when a new zip file needs to be written.2) parse out the path of the caches directory, we need to get the files that need to be compressed.3) Get the path to the new zip file.4) Create an instance of the Ziparchive class and tell it to create a new zip file in memory. Note: This new zip file w
:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is insta
path for the extracted files, such as the XZ compressed file as 1.txt.xz#xz-D 1.txt.xz-c >/tmp/1.txt4, ZipunzipZip followed by file compression after the filename and then with the file to be compressed, in the current directory compression, the original file will disappear, support compression directory but to add-rCompression: #zip 1.txt.zip 1.txtSpecify the c
a while, after the decompression is complete, you will see this prompt:If you want to unzip all the files in a subfolder of a compressed folder, for example, if we want to unzip all the files in the subfolder under the compressed
Tags: packaging tar bulk packagingPackagedThe list of files to be packaged is put into c_list.txt, and if it is a database file, you can use show tables; commands to list the table names.#!/bin/bash# Bulk Package for I in ' cat c_list.txt ' do tar-jcvf $i. tar.bz2 $i. frm $i. MYD $i. MYI DoneBatch decompression:#!/bin/bash for i in ' ls./*.tar.gz ' does tar-zxvf $i >/dev/null doneReference article:http://blog.csdn.net/zgf19930504/article/details/51912
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 compressed files, and finally describes the meaning of the parameters
For file compression and decompression in the. tar format it is common to use the same command today for files in. zip format. I was really stupid enough to ignore the suffix format ...1. For tar format filescompression: TAR–ZCVF compressed after the name of the compressed directory//TAR-ZCVF A.tar aDecompression: TAR–ZXVF the name after compression//TAR-ZXVF A.t
Tags: Ota win and 3.1 htm str RAC OSI multiple
Original: Linux unzip multiple. gz or. tar.gz files at once
Unzip multiple compressed packagesFor extracting multiple .gz files, use this command:for gz in *.gz; do gunzip $gz; doneFor extracting multiple .tar.gz
/p10404530_112030_ Linx-x86-64_1of7.zip2.unzip command cannot decompress more than 2G files by looking for a file with a 7z program that can decompress more than 2G of compressed packetshttp://pkgs.repoforge.org/p7zip/this address to download 7zip packageFirst, check whether Linux is 32-bit or 64-bit with the FILE/BIN/LS command:[Email protected] tmp]# file/bin/
Tags: top production system component Ubuntu information file system compressed file UbuntRemove directory structure plus--strip-components NSuch as: Compressed file Eg.tar file information is src/src/src/eg.txtRunning TAR-XVF Eg.tar--strip-components 1Results:src/src/eg.txtIf you run TAR-XVF Eg.tar--strip-components 3The results of the decompression are: eg.txtIn the decompression, if you want to specify t
all.gzGunzip all.gz3) for files ending with. tgz or. tar.gzTar-xzf all.tar.gzTar-xzf all.tgz4) files ending with. bz2Bzip2-d all.bz2BUNZIP2 all.bz25) For tar.bz2 end of fileTAR-XJF all.tar.bz26) for. Z End of FileUncompress all. Z7) files ending with. tar.zTar-xzf All.tar.zIn addition to the common compressed
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:# zip-r Archive_name.zip directory_to_compressThe following is if you
with. bz2bzip2-D all.bz2bunzip2all.bz25) for files ending with tar.bz2Tar-XJF all.Tar. bz26) for. Z End of File uncompress all. Z7For.Tar. Z End of FileTar-xzf all.Tar. Z also for common compressed files under window, zip and. Rar,linux have the appropriate methods to decompress them:1For.ZipLinux provides a zip and unzip
Learn a little go src every day.Today learned the simple use of the ZIP package, the implementation of the compression and decompression with the directory.Wrote two methods, the implementation of compression, decompression.Package Ziptestimport ("Archive/zip" "IO" "OS" "strings")//Compressed file//files file array, can be different dir file or folder//dest compressed
course, you can also use this command to squeeze the path of the unpacking:# TAR-XVF Archive_name.tar-c/tmp/extract_here/TAR. GZThis format is the most compressed format I have used. It does not take up too much CPU when compressing, and it can get a very ideal compression rate. Use the following format to compress a directory:# TAR-ZCVF archive_name.tar.gz directory_to_compressUnzip:# TAR-ZXVF Archive_name.tar.gzThis unpacking command will unlock th
Original URL: http://blog.csdn.net/zqlovlg/article/details/8033456Installation method:sudo apt-get install p7zip-fullUnzip the file:7z x manager.7z-r-o/home/xxThe explanations are as follows:x represents the extracted files, and is extracted according to the original directory (there is also a parameter e is the decompression file, but it will all the files are extracted to the root, not their original fold
the TAR series of compressed files to make a summary:1) for files ending in. tarTAR-XF All.tar2) for files ending in. gzGzip-d all.gzGunzip all.gz3) for files ending with. tgz or. tar.gzTar-xzf all.tar.gzTar-xzf all.tgz4) files e
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.