---
title: "tar命令,gzip命令用法"
author: "llhdf"
date: "2008-12-05T10:05:04Z"
tags: []
slug: "tar-gzip"
draft: false
lastmod: "2009-08-31T23:08:06Z"
id: 287265
url: "https://llhdf.iteye.com/blog/287265"
---

1.如果使用gzip压缩目录，先需要使用tar创建压缩包，然后使用gzip命令压缩。

 

tar招聘目录

tar -cvf Zhaopin.tar Zhaopin/                         

 

压缩招聘目录Zhaopin.tar

gzip Zhaopin.tar