Linux Commands - Find files that are greater than or less than a certain size

by
Jeremy Canfield |
Updated: August 16 2023
| Linux Commands articles
The find command with the -size option can be used to return all files and directories that are greater than or less that a certain size.
In this example, all files in the /tmp directory that are greater than 1 GB will be returned.
find /tmp -type f -size +1G
In this example, all files in the /tmp directory that are less than 1 GB will be returned.
find /tmp -type f -size -1G
Did you find this article helpful?
If so, consider buying me a coffee over at