Find large files under Debian / Linux

Find large files under Debian / Linux

You need to create some space and therefore want to find large files under Debian/Linux? No problem with the following commands.

The easiest way to find large files is with “find”, here you can also directly specify how large the file should be (from/to). The following command searches for files between 100 MB and 12000 MB:

find -size +100M -size -12000M

If you want to find the 10 largest files or directories – depending on the currently opened location – the following command will help you:

du -hsx * | sort -rh | head -10

By the way, you can find out the current free disk space with:

df -h

Leave a Reply

Your email address will not be published. Required fields are marked *