How to find top K largest files in a directory on Linux? Posted on Mar 24, 2018 by Eric Ma In QA I have many files in a directory on Linux. How to find top K largest files in a directory? For example, find top 10 (K=10) large files in the current directory: du -h --max-depth 1 * | sort -rh | head -n 10 Read more: How to sort all files recursively by modification time in a directory on Linux? How to find files in a directory that are larger than certain size? How to iterate all files and directories under a directory in Python? Get the number of files in a directory Finding the Number of Files (inodes) in a Directory on Linux top-like tools on Linux for network How to get the top committers in git? How to autohide top and bottom panel in RHEL 7