Basic grammar
gzip file
gunzip file.gz
Function description
Compressed files, only files can be compressed into *.gz files
Unzip file command
Actual demonstration
Basic grammar
zip option XXX.zip content to be compressed
unzip option XXX.zip
Common options
-r:递归压缩,即压缩目录
Function description
Commands to compress files and directories
Uncompress files
Actual demonstration
Basic grammar
tar option XXX.tar.gz package content
Common options
-c:产生tar打包文件
-v:显示详细信息
-f:指定压缩后的文件名
-z:打包同时压缩
-x:解压.tar文件
Function description The
tar command is a packaging command, and the final packaged file is a .tar.gz file.
Actual demonstration