The sum of the size of some files in the linux statistics folder

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

Count the total size of the files matched by test*

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326593935&siteId=291194637