Find the largest files in a directory
find all files larger than 500 MB | what is using my disk space | search for large files linux | find | disk-space | cleanupfind /var/www/vhosts -type f -size +500M -exec ls -lh {} + 2>/dev/null | sort -k5 -rh | head -20Lists the 20 largest files above a minimum size. Useful when a disk is filling up and you need to know quickly what is taking up the space. Permission errors are hidden.
Note: On large directory trees this can take several minutes. Prefix it with sudo to include files owned by other users.
Also searched as
- find all files larger than 500 MB
- what is using my disk space
- search for large files linux