---
title: "linux修改文件时间"
author: "mgoann"
date: "2010-01-15T19:09:35Z"
tags: ["Linux"]
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2010-02-04T23:08:59Z"
id: 571344
url: "https://mgoann.iteye.com/blog/571344"
---

在DSS归档时需要使用解压和打包命令将一些新的文件打到归档包中。并修改归档包的时间。

 

解压命令tar –zxvf \[包名],将文件替换,使用命令tar –cvf \[包名] \[src]，在使用gzip \[src]打成tar.gz，在使用命令touch –t  \[yymmddhhss] 包名将归档包时间修改。