total size of group of files selected with 'find'

后端 未结 7 1933
庸人自扰
庸人自扰 2020-12-07 16:32

For instance, I have a large filesystem that is filling up faster than I expected. So I look for what\'s being added:

find /rapidly_shrinking_drive/ -type f          


        
7条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 17:23

    I have tried all this commands but no luck. So I have found this one that gives me an answer:

    find . -type f -mtime -30 -exec ls -l {} \; | awk '{ s+=$5 } END { print s }'
    

提交回复
热议问题