分别压缩每个文件 [英] GZip every file separately
本文介绍了分别压缩每个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何分别压缩每个文件?
How can we GZip every file separately?
我不想将所有文件都放在一个大的tar中.
I don't want to have all of the files in a big tar.
推荐答案
您可以使用gzip *
注意:
- 这将分别压缩每个文件,并删除原始文件.
- 使用
-k
(--keep
)选项保留原始文件. - 如果由于shell的限制,您有大量文件,这可能无法正常工作
- 要并行运行 gzip 请参阅下面的@MarkSetchell答案.
- This will zip each file individually and DELETE the original.
- Use
-k
(--keep
) option to keep the original files. - This may not work if you have a huge number of files due to limits of the shell
- To run gzip in parallel see @MarkSetchell's answer below.
这篇关于分别压缩每个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文