Compression and decompression1 gzipGzip test.py #压缩后为test. py.gzgzip-d test.py.gz #解压文件2 bzip2Bzip2 test.py #压缩后为test. py.bz2bzip2-d test.py.gz #解压文件3 tarOptions content-C Create a packaged file-R append file to packaged document-T list packaged content-f Specifies the package name-j compressed by bzip2 format after packaging-Z Compression after packaging with gzip format-X Unpacking file-C Specify the decompression path--delete removing a file from a packaged file--remove-files Delete source fi
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 folder) manager.7z is a compressed file, here you have to change their own. If you are not in
The compressed zip file cannot be decompressed by 7z, and the format is windows to create it, and it does not press the package in this way under Linux. Here's how to work with this file under Linux:Method One:Cat xx.z01 xx.zip > full. zipunzipfull. zipMethod Two:Zip Xx.zip--out full. zipunzipfull. zipMethod Three:Zip-s 0 Xx.zip--out full.zipUnzip Full.zipReference:Https://superuser.com/questions/15935/how-do-i-reassemble-a-zip-file-that-has-been-emailed-in-multiple-partsLinux
1. One by one corresponds to: >>> data = [ " ACME ", 91.1, (21 >>> name, shares, Price, date = data >>> name " acme " >>> date ( , 21 data >>> name " acme " >>> year 2012>>> Mon 12>>> day 21>>> >>> data = [ " ACME ", 91.1, (21 >>> name, shares, Price, date = data >>> name " acme " >>> date ( , 21 data >>> name " acme " >>> year 2012>>> Mon 12>>> day 21>>> 2. The number of iterated object elements exceeds the number of variables:, * match returns a list>>> record =
---------------------------------------------Tar command:-V Visualization-C New Package-F Specify the file name (unless you use the default user name)-X Decompression Target.tar-R Add File to Target.tar-t lists files in Target.tar-U update file files in Target.tar-Z Call gzip-j Call bzip2Compression TAR:TAR-CF [Target.tar] [file]Decompression TAR:TAR-XF [Target.tar]Compression TAR.GZ:TAR-CZF [target.tar.gz] [file]Decompression TAR.GZ:TAR-XZF [target.tar.gz]Compression TAR.BZ2:TAR-CJF [target.tar
Gunzip-r Hongchangfirst/dataHow do I recursively delete those remaining non-log-terminated files?List the confirmation first:Find Hongchangfirst/data-type F! -name "*.log"Then really delete:Find Hongchangfirst/data-type F! -name "*.log"-exec rm-f {} \;Remember the back-exec must add a space, otherwise there will be find:missing argument to '-exec ' error.How do I merge the contents of all the files in a directory into a large file?Find 04-type f-name "wire.log.*" | Xargs cat >. /all_logsOriginal
Reason:Java encoding of the text is based on Unicode, so if Zipinputstream and Zipoutputstream to deal with the compression and decompression work, encountered in the Chinese file name or path, it is of course the Unicode to deal with ROM. However, now on the market compression and decompression software, such as WinZip, but does not support Unicode, a file name in Unicode-encoded file, it will not be processed.
So how do you make the compression file that WinZip can handle? There are two ways o
1. Unzip the zip file/*** Unzip the input zip stream, java default decompression can only handle UTF-8 encoded file or directory name, otherwise it will be reported malformed exception *@paramis input stream *@paramOutputFolder target Folder *@paramencoding for file and directory names in the charset zip file *@throwsIOException When the decompression error is thrown*/Private voidUnzip (InputStream is, Stri
: Sends the output to the more program processing.-N: Do not overwrite the original file when decompressing.-O: Do not need to ask the user first, unzip overwrite the original file after execution.-p-Q: No information is displayed when executing.-S: Converts white space characters in file names to baseline characters.-V: Keep the file version information of the VMS.-X: The original uid/gid of the file is also stored back when decompressed.[. zip file]
Tags: report view Linux fun tar fix art man auto1, in the Linux system backup files, in the Windows decompression appeared in Chinese garbled, this is actually a mistake, I use the win03 with the zip view Explorer directly copied, so there is this problem, we recommend the use of free 7-zip.2, backup the program zip file on Windows, if the file path contains Chinese, unzip in Linux may appear garbledAnalysis: Files that are compressed on windows are c
Article Title: how to use the GNU text utility. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
This tutorial shows how to use the GNU text Utility Set to process log files, documents, structured text databases, and other textual data or content sources. The utilities in
-M
After compressing the file into a compressed file, delete the original file, that is, the horse file is moved to the compressed file
-F
Try to repair a corrupted compressed file
-T
Check that each file within the compressed file is correct
- #
The compression level is a number between 1-9
Unzip command
-X "File list"
DB2 Utility (2) 3. DB2 Online Utility 3.1, LISTDEF Utility can define multiple objects in a LIST and define a name for the set. Generally, we use LISTDEF to define a LIST before a Utility control statement, and use this LIST in the following Utility Control statement. At www
I want to transfer files between servers, use the SCP tool, and the zip tool is useful when the file is large or needs to transfer many files. Network analysis Tools The MTR is also commonly used.Readers can look at the next man information for comparison.1. Compress the files into soft.zip filesZip–r Soft.zip apr-1.5.1.tar.gz cmake-2.8.12.2.tar.gz/app/backup/2. SCP Tool Transfer fileScp-p 2201 Soft.zip Test@10.10.1.2:/database/backupRSA key fingerprint is 6c:0a:34:3c:d2:13:4d:ca:bf:d9:9a:8d:c7:
linux, when using unzip decompression, error: $ unzip abc.zip Archive: abc.zip end-of-central-directory signature not found. either the file is not latter case the Central directory and ZipFile comment'll be found on The last disk (s) o F this archive. Unzip: cannot find ZipFile directory in one of Abc.zip or Abc.zip.zip, and cannot Find Abc.zip.Z
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
First, send the unpacking package to the Linux server:1. After downloading the. tar.gz file on the WinDOS, send it to Linux via the SFTP client such as WinSCP2. Direct download via wget command in Linux#wget [Options] []wget Common parameters:-B: Background download (default download to current directory)-O: Save the downloaded file with a custom name. The downloaded file is named by default with the string following the "last"/"symbol", and we can rename it using "-O New file name".-limit-rate:
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.