gzip/gunzip指令
gzip用于压缩文件,gunzip用于解压的
基本语法
gzip 文件 (功能描述:压缩文件,只能将文件压缩为*.gz文件)
gunzip 文件.gz (功能描述:解压缩文件命令)
eg:gzip压缩,将/home下的hello.txt文件进行压缩
gzip hello.txt
attention: 该命令不会保留原文件
eg:gunzip压缩,将/home下的hello.txt.gz文件进行解压缩
gunzip hello.txt.gz