Install command: Yum install-y unzip zip1. I want to compress a file abc.txt and a directory dir1 into yasuo.zip:# zip-r yasuo.zip abc.txt dir12. I downloaded a yasuo.zip file that I want to decompress:Unzip Yasuo.zip3. I have Abc1.zip,abc2.zip and Abc3.zip in the current directory, and I want to unzip them together:# unzip abc\? ZipNote: A character is represent
Linux comes with a unzip program can unzip the file, the decompression command is: Unzip Filename.zip also provides a ZIP program compressed zip file, command is zip filename.zip files Files will be compressed to Filename.zip also look at the suffix of your file, different suffixes of the file decompression and compression of the command are not the same summary
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
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
Earlier, I mentioned. How to package the file as a zip package, then how to unzip the zip file package into a normal file? It is easier to unpack the zip package into a normal package than to package the file as a zip. Because there is a multilevel file compression, there is no multi-level file decompression. In other words, when compressing, you have to plug all the files into the compressed package. Decompression only needs to decompress the first l
then compress to XXX.tar.gzTo extract gz, in fact, is to read a single file, the Python method is as follows:Import Gzipimport osdef un_gz (file_name): "" " ungz Zip file" "" F_name = File_name.replace (". Gz", "") # Get the name of the file and remove G_file = gzip. Gzipfile (file_name) #创建gzip对象 Open (f_name, "w+"). Write (G_file.read ()) #gzip对象用read () when opened, writes to open () The file that was created. g_file.close () #关闭gzip对象 TarXXX.tar.gz decompression t
TarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gzDecompression: Tar zxvf FileName.tar.gzCompression: Tar zcvf FileName.tar.gz DirName———————————————. bz2Decompression 1:bzip2-d filename.bz2Decompression 2:BUNZIP2 filename.bz2Compression: Bzip2-z FileName. tar.bz2Decompression: Tar jxvf FileName.tar.bz2Compression:
Article turned from: http://www.jb51.net/LINUXjishu/105916.html1. 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 ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4. Extract the Wwwroot.zip from the/home directory directly int
unzip the file via the right-click menu:
Right click on the selected one or more compressed files, in the popup context menu, select "Extract Files ...", in the new "Extract Files" window, set the decompression options, click "OK" to extract the operation. If the extracted files are saved in the current folder, you can also do this by selecting "Extract to Current Folder".
Unzip the file via the main so
1, install ZIP, unzip applicationYum Install zip unzip2, compression and decompression filesThe following commands are all operated under the/home directoryCd/home #进入/home DirectoryA. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录B. Unzip the mydata.zip under the/home directory into the Mydatabak directoryUnzip mydata.zip-d MydatabakC, to the home/ho
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 ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4. Extract the Wwwroot.zip from the/home directory directly into the/home directoryUnzip Wwwroot.zip5, the Home/home directory
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:
CD/D H:\ROM
After the switch succeeds, you will see a string of words before the cu
This example describes the Python zip and unzip data methods. Share to everyone for your reference. The implementation method is as follows:
# Zipping and unzipping a string using the zlib module# a very large string could be zipped and saved to a file speeding U P File Writing time # and later reloaded and unzipped by another program speeding up reading of the file# tested with Pyth ON24 vegaseat 15aug2005import zlibstr1 = \ "" "Dallas Cowboys foo
From: http://www.ezloo.com/2008/01/linux_zip_unzip.html
The basic usage of the zip command is: Zip [parameter] [file 1] [file 2]
Simple Example:
Pack the testfile in this directory into the test.zip file: Zip test.zip test/*. If an absolute path is used in the file, it is also an absolute path in the compressed file. That is to say, if you zip test.zip/home/test/*, the level is also like this in the compressed file.
Parameter List:
-A converts a file to ASCII mode.
-F try to repair damaged compr
For linux command zip unzip, use zip to compress the file. at the shell prompt, enter the following command: Ghost indicates the file you created, and filesdir indicates that you want to place the new zip file...
For linux command zip unzip, use zip to compress the file. at the shell prompt, enter the following command: zip-r filename.zip filesdir www.2cto.com. In this example, filename.zip represents th
MongoDB client tool unzip vue cracked version attached baidu Network Disk address: pan. baidu. coms1w8OyU overall feeling is a bit similar to mysql-front, as shown below:
MongoDB client tool unzip vue cracked version attached Baidu Network Disk address: http://pan.baidu.com/s/1w8OyU overall feeling and mysql-front is a bit similar, as follows:
MongoDB client tool un
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.