Linux
100MB 이상 쓰는 파일 중 용량 상위 10개 찾는 법
졸린하루
2017. 6. 13. 13:44
find /SIT -size +100M -exec du -h {} \; |sort -n |head -10 용량 및 경로까지만 나옴
[root@test ~]# find /test -size +100M -exec du -h {} \; |sort -n |head -10
147M /test/aux.txt
831M /test/ls.txt
find /SIT -size +100M -exec ls -l {} \; |sort -n |head -10
[root@test ~]# find /test -size +100M -exec ls -l {} \; |sort -n |head -10
-rw-r--r--. 1 root root 153845760 6월 13 13:41 /test/aux.txt
-rw-r--r--. 1 root root 870645760 6월 13 13:41 /test/ls.txt