/// ///unzip the RAR and zip files (there is a need for Winrar.exe (as long as you can extract or compress files on your computer Winrar.exe))/// /// Save directory after extracting files /// The file to be extracted is stored in absolute path (including file name) /// whether the e
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
above/tmp/etc.tar.gz files in the file?[Email protected] ~]# tar-tzvf/tmp/etc.tar.gz# because we use gzip compression, when we look at the files in the tar file,# you have to add Z to this parameter! It's important!Example three: Extracting/tmp/etc.tar.gz files under/USR/LOCAL/SRC[Email protected] ~]# cd/usr/local/src[[email protected] src]# tar-xzvf/tmp/etc.tar
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 files
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 compression path:#zip/tmp/a/1.txt.zip/tmp/1.txt compress the/tmp/1.txt to/tmp/a/under the t
:# 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
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.tar2. For zip format Filescompression: Zip filename.zip filesdecompression:
(Fi_d)ElseGlobal FileCountGlobal ZipdirFileCount = FileCount + 1# Print FileCountFileName = Os.path.join (filepath,fi_d)Filenamenoext = Getfilenameandext (FileName) [0]Fileext = Getfilenameandext (FileName) [1]# If you want to save to the same folder, set the file name to emptyFilenamenoext = ""Zipdirdest = Zipdir + "/" + Filenamenoext + "/"If fileext in ['. zip ', '. rar ']:If not Os.path.isdir (zipdirdest):Os.mkdir (Zipdirdest)if Fileext = = ". Zip": #Print str (filecount) + "--" + fileName#
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 the decompression directory, you can add the parameter-C target directorySuch as: If we
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 H:\ROM, we can switch the working directory to H:\ROM, the command is as follows:
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
backup file.-X releases the file from the archive file.3.2 Auxiliary Options:-B This option is set for the tape drive, followed by a number to indicate the size of the chunk, with a system preset value of 20x512 bytes.-F using a profile or device, this option is usually required.-K saves the file that already exists. For example, restoring a file, encountering the same file during the restore process, does not overwrite it.-M when restoring files, se
———————————————. rarDecompression: rar a Filename.rarCompression: RAR e Filename.rar———————————————. LhaDecompression: Lha-e Filename.lhaCompression: Lha-a Filename.lha FileNameZipZip is probably the most used document compression format. Its biggest advantage is the use of different operating system platforms, such as Linux, Windows, and MacOS. 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 ge
From: http://blog.csdn.net/mmllkkjj/article/details/6768294/ExtractTAR–XVF File.tar//Unpacking the TAR PackageTAR-XZVF file.tar.gz//Decompression tar.gzTAR-XJVF file.tar.bz2//Decompression tar.bz2TAR–XZVF file.tar.z//Unzip tar. ZUnrar e file.rar//decompression rarUnzip File.zip//Unzip zipSummarize1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF
In recent projects using Java to implement the Zip/unzip XML file functionality, Java comes with the API to facilitate the implementation of file compression and decompression, record the relevant code.
Zip source file to destination file with source file name
Public void Zip(file src, file dest) {InputStreaminch=NULL; Zipoutputstream zos=NULL;Try{Zos =NewZipoutputstream (NewFileOutputStream (dest)); ZipEntry ze=NewZipEntry (Src.getname
list all the files in the All.tar package,-T is to list the meaning of the fileThis command is to solve all the files in the All.tar package,-X is the meaningCompressiontar –cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpgtar –czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gztar –cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bzip2压缩过的包,命名为jpg.tar.bz2tar –cZf j
We are in the maintenance of Linux server, often encountered to view the contents of various formats of compressed files, here I picked a few common format files, record, easy to find later.1. tar format file tar tvf test.tar2, tar.gz format file TAR-ZTF test.tar.gz3, tar.bz2 format file TAR-JTF test.tar.bz24, zip format file unzip-v TEST.ZIP5 , bzip2 format file
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.