GZip every file separately

前端 未结 6 1594
囚心锁ツ
囚心锁ツ 2020-12-13 17:40

How can we GZip every file separately?

I don\'t want to have all of the files in a big tar.

6条回答
  •  一个人的身影
    2020-12-13 18:10

    After seven years, this highly upvoted comment still doesn't have its own full-fledged answer, so I'm promoting it now:

    gzip -r .

    This has two advantages over the currently accepted answer: it works recursively if there are any subdirectories, and it won't fail from Argument list too long if the number of files is very large.

提交回复
热议问题