美文网首页
Linux中不解压怎么查看压缩包中文件大小

Linux中不解压怎么查看压缩包中文件大小

作者: 运维之美 | 来源:发表于2019-12-05 10:15 被阅读0次

1.tar.gz格式压缩包

tar tvf IPy-0.81.tar.gz   #在不解压的情况下查看tar.gz内文件大小

drwxr-xr-x jeff/users        0 2013-04-09 05:22 IPy-0.81/
drwxr-xr-x jeff/users        0 2013-04-09 05:22 IPy-0.81/test/
-rw-r--r-- jeff/users     2305 2013-03-27 08:53 IPy-0.81/test/test.rst
-rw-r--r-- jeff/users    40444 2013-03-27 08:53 IPy-0.81/test/test_IPy.py
-rwxr-xr-x jeff/users     1926 2013-04-09 02:46 IPy-0.81/setup.py
-rw-r--r-- jeff/users     3831 2013-04-09 01:25 IPy-0.81/ChangeLog
-rw-r--r-- jeff/users     4628 2013-04-09 02:30 IPy-0.81/README
-rw-r--r-- jeff/users    59727 2013-04-02 05:42 IPy-0.81/IPy.py
drwxr-xr-x jeff/users        0 2013-04-09 05:22 IPy-0.81/example/
-rw-r--r-- jeff/users     4582 2013-03-20 05:30 IPy-0.81/example/confbuilder.py
-rw-r--r-- jeff/users     3344 2013-03-20 05:30 IPy-0.81/example/confbuilder
-rw-r--r-- jeff/users    11690 2013-04-09 05:22 IPy-0.81/PKG-INFO
-rw-r--r-- jeff/users      197 2013-03-27 08:02 IPy-0.81/MANIFEST.in
-rw-r--r-- jeff/users     1524 2013-03-20 05:30 IPy-0.81/COPYING
-rwxr-xr-x jeff/users      900 2013-03-27 08:52 IPy-0.81/test_doc.py
-rw-r--r-- jeff/users     1324 2013-03-27 08:53 IPy-0.81/AUTHORS

2.zip格式文件

 unzip -l pdksh-5.2.14-1.i386.zip

Archive:  pdksh-5.2.14-1.i386.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
   173189  06-25-2013 08:39   pdksh-5.2.14-1.i386.rpm
    17029  11-03-2012 14:17   LinuxIDC.com.png
      626  06-25-2013 08:52   教程重要说明.txt
---------                     -------
   190844                     3 files

相关文章

网友评论

      本文标题:Linux中不解压怎么查看压缩包中文件大小

      本文链接:https://www.haomeiwen.com/subject/jzxdgctx.html