Browse Tag: disk space

Find the 50 largest files

What’s eating up all your disk space?
[code lang=”bash”]find / -path /dev -prune -o -path /sys -prune -o -path /proc -prune -o -type f \
-size ‘+1024k’ -printf “%s %h/%f\n” | sort -rn -k1 | head -n50 | \
awk ‘{ printf(“%5dMB\t%s\n”, $1/1048576, substr($0, index($0, ” “)+1, length($0))) }'[/code]