如何在lz4中使用tar? [英] How to use tar with lz4?
本文介绍了如何在lz4中使用tar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用tar并通过 LZ4 过滤存档?或任何可用的工具?使用 tar cvf文件夹ABC.tar文件夹ABC&&看起来很麻烦lz4c -c0 folderABC.tar
。
How to use tar and filter the archive through LZ4? Or any available tools? It looks cumbersome to use tar cvf folderABC.tar folderABC && lz4c -c0 folderABC.tar
.
PS:* nix环境
PS: *nix environment
推荐答案
lz4 具有类似于 gzip 。因此,类似这样的方法将起作用:
lz4 has a command line structure similar to gzip. Therefore, something like this will work :
tar cvf - folderABC | lz4 > folderABC.tar.lz4
或
tar cvf - folderABC | lz4 - folderABC.tar.lz4
第一个文件像gzip一样默默地压缩。第二个是lz4特有的,还将显示摘要的压缩状态。
First one compresses silently, like gzip. Second one is a bit more lz4-specific, and will also display summarized compression stats.
这篇关于如何在lz4中使用tar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文