ยท 1 min read

Finding files by size with the command line

If you just need to find large files, you can use find with the -size option. The next command will list all files larger than 10 Megabytes:

find / -size +10M -ls

If you want to find files between a certain size, you can combine it with a size smaller than search. The next command finds files between 10MB and 12MB:

find / -size +10M -size -12M