---
title: "linux统计文件夹某一些文件的大小总和"
author: "andyniu"
date: "2016-06-17T10:57:49Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2016-06-17T10:57:49Z"
id: 2305675
url: "https://andyniu.iteye.com/blog/2305675"
---

du -sm test* | awk '{sum += $1}; END{print sum}'

统计test\*匹配的文件  总共大小