# find / -type f -size +10G -exec du -h {} \; 2>/dev/null | sort -n | tail -n 10 

/ 為由根目錄找起

-type f 為檔案

-size +10G 為大於10GB

du 為看檔案大小的指令

sort 為排序

tail -n 10 為找倒數10列顯示於螢幕上

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()