Find Biggest Files and Directories on Linux

close up view of system hacking
Photo by Tima Miroshnichenko on Pexels.com

Here’s a handy command for tracking down which part of your file system has the largest files in Linux.

du -a / | sort -n -r | head -n 5

Linux can be a tricky beast sometimes and it only takes one rogue process, one giant log file, or one run away user upload to eat your disc and bring the server to a grinding halt.

To check how you’re doing for disc space, you can check

df -h

Be the first to comment

Leave a Reply