星期一, 10月 01, 2012

Linux 下找出大容量的檔案

找出檔案大於 50MB 的檔案,並列出檔案名稱及檔案大小:

[root@linux /]# find / -type f -size +51200 -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'



size 的單位為 bytes

1024*50 = 51200 bytes



資料來源 http://bear110.com/modules/tadnews/index.php?nsn=23


沒有留言: