我想执行 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 ×1