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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 5742de in the box below so that we can be sure you are a human.