根据文件名查找文件
[root@localhost /]# find / -name "*.log"
统计大小
[root@localhost /]# du -lh
批量查找指定文件并统计大小
[root@localhost /]# find / -name "*.log" | xargs du -ch
根据文件名查找文件
[root@localhost /]# find / -name "*.log"
统计大小
[root@localhost /]# du -lh
批量查找指定文件并统计大小
[root@localhost /]# find / -name "*.log" | xargs du -ch