gzip
UK [ɡ'zɪp] US [ɡ'zɪp]
[Calculation] Compression program
Linux gzip command syntax
Function: The gzip command is used to compress files.
Syntax: gzip [-acdfhlLnNqrtvV][-S <Compression suffix string>][-<Compression efficiency>][--best/fast][File ...] or gzip [-acdfhlLnNqrtvV][-S <Compression suffix string>][-<Compression efficiency>][--best/fast][Directory]
Linux gzip command example
Compressed file
[root@w3cschool.cc a]# ls //显示当前目录文件 a.c b.h d.cpp [root@w3cschool.cc a]# gzip * //压缩目录下的所有文件 [root@w3cschool.cc a]# ls //显示当前目录文件 a.c.gz b.h.gz d.cpp.gz [root@w3cschool.cc a]#