首页 > 解决方案 > 如何从 bz2 存档中获取文件列表(ls 命令)?

问题描述

从类型的存档文件中获取文件列表(如ls)的 Unix bash 命令是什么.bz2(不解压缩存档)?

标签: linuxbashunix

解决方案


First bzip2, gzip, etc compress only one file. So probably you have compressed tar file. To list the files you need command like:

tar tjvf file.bz2

This command uncompress the archive and test the content of tar.


推荐阅读