본문 바로가기
OS/Linux

How do I find files and total their sizes?

by 신군. 2022. 8. 18.
반응형
$ find . -name 'flibble*' -ctime +90 -exec du -sh {} \;

2.1G    ./flibble_116.log
2.1G    ./flibble_83.log
2.1G    ./flibble_211040_157.log
2.1G    ./flibble3747_51.log

 

Solution

find . -name 'flibble*' -ctime +90 -exec du -shc {} +
반응형

'OS > Linux' 카테고리의 다른 글

tcpdump  (0) 2022.04.30
[Linux] CentOS 8: Failed to download metadata for repo 'appstream'  (0) 2022.04.23
디렉토리 일괄변경  (0) 2022.02.21
[Linux/Unix] find 의 고급기능  (0) 2022.01.08
exec와 xargs 차이  (0) 2022.01.08