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
Compression zip under Linux, unzip unzip commandI personally test the summary:Linux installation Unzip zipInstall command: Yum install-y unzip zip# Unzip Yasuo.zipMethod One:Install command: Yum install-y unzip zip1. I want to com
Zip:Compression:Zip [-acddffghjjkllmoqrstuvvwxyz$][-b Extract:Unzip [options] Compress file name. zipOptions:-X file list to unzip the file, but not include the specified file file.-V View the compressed Files directory, but do not press.The-t test file has no damage, but does not understand the pressure.The-D directory unlocks the compressed file to the specified directory.-Z displays only annotations for compressed files.-N does not overwrite files
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original file if the same file exists.Common compression:[Email protected] test]# zip-r test.zip./*All files and folders under the
Recently cleaned up the Linux zip/unzip command, as follows:
Command name: Zip
Function Description: Compress file.
Syntax: Zip [-acddffghjjkllmoqrstuvvwxyz$][-b
Supplemental Note: Zip is a widely used compression program, the file after it compression will produce a ". zip" extension of the compressed file.
Parameters
-A adjusts the executable automatic decompression file.
-b
-C adds a comment for each compressed file.
-d deletes the specif
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that have a ". zip" extension. Parameters-A adjusts the executable auto-unzip file.-b> Specifies the directory where files are temporarily stored. -C adds a comment to each compressed file.-d deletes the specifie
not display the instruction execution process.-R recursive processing of all files and subdirectories under the specified directory.-S contains system and hidden files.-t-T checks that each file in the backup file is correct.-U replaces the newer file with the compressed file.-V Displays the instruction execution process or display version information.-V Saves the file properties of the VMS operating system.-W in the file name if the version number, this parameter is only valid under the VMS op
Tags: adjust load. gz different CAL host defaults let tar? ? After compressing files to improve data transmission efficiency, reduce transmission bandwidth, management of backup data has a very important function, so file compression decompression skills become the necessary skills. Compared to the file decompression tool in Windows Flowers Zhengyan, the Unzip tool in Linux is much less, the commonly used decompression commands are gzip,bzip2,tar,zip
: 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
-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"
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:
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.