file within the compressed file is correct-# The compression level is a number between 1-9Unzip command-X "File list" unzip the file but does not include the file specified in the file
that are contained in compressed files.-L Changes all the file names in the compressed file to lowercase.-M sends the output to the more program processing.-N Do not overwrite the original file when extracting.-O do not need to ask the user first, unzip overwrite the original file
Compress (zip) and decompress (unzip) commands in Centos
When using ftp to back up data, it takes a lot of time because there are too many files, so we need to use the compression and decompression commands, for example, I need to back up the/opt/data folder, however, since there are tens of thousands of files in data, you need to use the zip command. For detail
Run the following commands in the/home directory: cd/home # go to the/home directory. 1. compress the mydatadirectory under the/home directory into mydata.zipzipzip-rmydata.zip mydata # compress the mydata Directory. 2. run the following commands in/home: directory operations
Cd/home # enter the/home directory
1. compress the mydatafile under the/home directory as mydata.zip.
Zip-r mydata.zip mydata # compress the mydata Directory
2. decompress mydata
When using ftp to back up data, it takes a lot of time because there are too many files, so we need to use the compression and decompression commands, for example, I need to back up the/opt/data folder, however, since there are tens of thousands of files in the data file, you need to use the zip command at this time. for details, see data file compression and tra
"; Check for files that are not present in zip and return these files @Scheduled (cron= "0/10 * * * *? ") public void Searchzipfile () {log.info (" Unzip user photo task start execution "); list Ziputil.javaPackage Com.hupu.smart.user.service.util;import Java.io.file;import Java.io.fileoutputstream;import Java.io.ioexception;import Java.io.inputstream;import Java.io.outputstream;import Java.u
Install zip, unzip, g ++, and other software in linux.
Recently, the company has configured a new 64-bit ECs instance. during deployment, it found that the zip/unzip compression and decompression software was not installed.
So I had to install these two software on my own. The best way to use linux is yum. The two comm
ZIP-RP 1234 Test.zip Test.txt
-R means recursively all subdirectories
-p means the password is 1234.
UNZIP-P 1234 Test.zip//extract to current directory
Description of parameters related to zip and unzip
Zip [parameters]
Packaging files using
MySQL-5.6.13 unzip version (zip version) Installation configuration tutorial [Download MySQL5.6.13] From MySQL official website mysql.com find MySQLCommunityServer5.6.13 for dev. mysql. comdownloadsmysql, here you can choose the operating system platform. Hong Ge chose Microsoft Windows. There are three
MySQL-5.6.13 unzip version (
–XVF File.tar//Unpacking the TAR PackageSummarize1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF decompression4, *.bz2 with bzip2-d or with BUNZIP2 decompression5, *.tar.bz2 with TAR–XJF decompression6, *. Z Extract with Uncompress7, *.tar. Z Extract with Tar–xzf8, *.rar with Unrar e decompression9, *.zip with unzip decompressionZip:Compressio
Install zip, unzip, g ++, and other software in linux
Recently, the company has configured a new 64-bit ECs instance. during deployment, it found that the zip/unzip compression and decompression software was not installed.
So I had to install these two software on my own. The best way to use linux is yum. The two com
Zip and unzip data in python
This document describes how to use python zip and unzip data. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
/shell.txtDeleting:test/shell.txt
using the- u parameter, the modified/test/99.sh file is updated to update the changed information into the Test3.zip package
[[email protected] app]# zip- u test3.zip/test/99.shupdating:test/99.sh (deflated 30%)
If you have more files in the test
Zip can compress files, or you can compress directories. The compression extension is. zip.Syntax: zip[option [compressed filename. zip][file directory name to compress]Common options:-R: Compresses the directory along with all subdirectories and files in the directory.[[email protected] ~]#
This article mainly introduces the methods of zip and unzip data in python, and analyzes the usage skills of the zlib module in Python, for more information about how to use python zip and unzip data, see the following example. Share it with you for your reference. The specific implementation method is as follows:
#
/// ///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
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-rC
During website migration, too many files in the website directory will consume a lot of time, so we need to use the compression and decompression commands, such as, I need to back up the/home/wwwroot folder, however, because wwwroot contains tens of thousands or even more files, you need to use the zip command to compress the wwwroot file and then transfer it:
CD/wwwroot
[Turn]unzip decompression Windows zip garbled processingHttp://blog.sina.com.cn/s/blog_6c9d65a101012gz0.htmlFriends from Windows sent over the zip file, I unpacked after the garbled, very depressed.Prior to a method, use the command line to change the encoding of the file in
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.