GZip every file separately

前端 未结 6 1570
囚心锁ツ
囚心锁ツ 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条回答
  •  -上瘾入骨i
    2020-12-13 18:05

    You can use gzip *


    Note:

    • 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.

提交回复
热议问题