In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail about the use of linux zipinfo command to view compressed file information, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.
The full name of the zipinfo command is "zip information", which is used to list compressed file information. Execute the zipinfo instruction to learn the details of the zip zip file.
Syntax format: zipinfo [parameters]
Common parameters:
-1 lists only the file name-2 this parameter is similar to specifying the "- 1" parameter, but can be used with the "- h", "- t" and "- z" parameters to list only the file name of the compressed file-l this parameter has a similar effect to the specified "- m" parameter, but lists the size of the original file rather than the compression ratio of each file-m this parameter has a similar effect as the specified "- s" parameter However, it often lists the compression ratio of each file-M if the content of the information exceeds one screen, list the information in a manner similar to the more instruction-s lists the contents of the compressed file with a similar effect of executing the "ls-l" instruction-t lists only the number of files contained in the compressed file, the file size before and after compression and the compression ratio-T will compress the date and time of each file in the compressed file in years, months, days, hours, minutes List in order of seconds-v displays detailed information about each file in the compressed file-x does not list information about eligible files-z if the compressed file contains comments, the comments are displayed
Reference example
Displays compressed file information:
[root@linuxcool] # zipinfo file.zip Archive: file.zip 486bytes 3 files-rw-r--r-- 2.3unx 0 bx stor 24-May-10 18:54 A.C. Unx RW c.c3 files-2.3 unx 0 bx stor 24-May-10 18:54 b.c bx stor 24-May-10 0 c.c3 files 18:54 c.c3 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%
Displays information for each file in the compressed file:
[root@linuxcool] # zipinfo-v file.zip
Only the size of the compressed package and the number of files are displayed:
[root@linuxcool] # zipinfo-h file.zip Archive: file.zipZip file size: 907 bytes, number of entries: 3
Generate a basic, long-formatted (rather than lengthy) list, including headings and total rows:
[root@linuxcool ~] # zipinfo-l file
View the most recently modified files in the archive:
[root@linuxcool ~] # zipinfo-T file | sort-nr-k 7 | sed 15q is here to share the information about viewing compressed files using linux's zipinfo command. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 215
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.