Type the following command at the shell prompt to find out top 10 largest file/directories

# du -a /var | sort -n -r | head -n 10

for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11

Revisions

No comments yet.

Leave a Reply