---
title: "linux命令小记录"
author: "kankan1218"
date: "2011-03-25T15:42:06Z"
tags: ["Access", "Linux", "XML"]
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2011-06-22T10:18:19Z"
id: 975347
url: "https://312788172.iteye.com/blog/975347"
---

1\. du -hs \[folder path]：Summarize disk usage of each FILE, recursively for directories.

   h-----human-readable,

   s------summarize

result:

4.1G    data.bak/

 

2.last access time在打包的时候会被改变，想要不改变需要加如下的参数**--atime-preserve**

tar --atime-preserve -czvf test.tgz aigle\_2.xml

 

3.创建多级文件夹：

mkdir -p /home/edison/test