Find the K Largest Files in a Linux Directory
When a disk fills up or you’re doing a cleanup pass, finding the biggest files quickly saves a lot of time. Here are the practical approaches on Linux. Top 10 largest files in the current directory du -ah –max-depth=1 | sort -rh | head -n 10 Breaking this down: du -ah shows sizes for all…
