To find the largest files and directories on a linux server, type the command bellow… and grab a cup of coffee afterwards.
Change head -n $top_num
to your liking to get the top x files and/or directories.
1 |
du -a / | sort -n -r | head -n 5 |