linux - 如何从 bz2 存档中获取文件列表(ls 命令)?
问题描述
从类型的存档文件中获取文件列表(如ls
)的 Unix bash 命令是什么.bz2
(不解压缩存档)?
解决方案
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
.
推荐阅读
- python - Django:如何检查访客或页面所有者进入页面
- reactjs - 在 React/Laravel 项目中使用 Carbon 进行本地化(更改日期语言)
- javascript - ReferenceError:未定义
- r - 在 R 4.0.3 + 闪亮的 1.6.0 中使用 randomColor
- node.js - 编剧:从无法使用 page.setInputFiles 的非输入元素上传文件?
- database - 选什么?仲裁或 Cassandra 中的最新时间戳数据
- sql-server - 修改 SSIS 2008 项目 -.dtsx
- python - 如何在 Python 中打印 Mongodb 中 $project 的结果?
- python - pandas - 为什么我不能基于简单的布尔值连接对象?
- r - rollapply lm时可变长度不同错误