小编mor*_*l36的帖子

如何执行 tar 压缩的试运行?

我想执行 tar 压缩的试运行并将条目打印到 stdout 而不实际创建 tar。

到目前为止,我已经尝试过:

// just spins
$ tar t -O Downloads
Run Code Online (Sandbox Code Playgroud)
$ tar c -O Downloads
tar: Option -O is not permitted in mode -c
Run Code Online (Sandbox Code Playgroud)

tar --help 给出以下内容:

?> ~ tar --help                                                                                                                                                                                 08:06:22
tar(bsdtar): manipulate archive files
First option must be a mode specifier:
  -c Create  -r Add/Replace  -t List  -u Update  -x Extract
Common Options:
  -b #  Use # 512-byte records per I/O block
  -f <filename>  Location of archive
  -v    Verbose
  -w    Interactive
Create: tar …
Run Code Online (Sandbox Code Playgroud)

tar

3
推荐指数
2
解决办法
3380
查看次数

标签 统计

tar ×1