统一按M显示

find . -type f -size +200M 2>/dev/null|xargs du -shm|sort -nr

结果:

1570	./mysqlbak/mysqldata20201203.sql
1326	./data/mysql-bin.000209

按照M或者G显示

find . -type f -size +200M  -print0 | xargs -0 du -h|sort -nr

结果:

205M	./data/ibdata1
5.1G	./mysqlbak/mysqldata20201207.sql

相关文章: