Find files bigger than a specific file size

To achieve this, we can use the command find with its -size flag.

Example:

To find files larger than 10MB:

find . -type f -size +10M

If you want to find only in the current directory:

find . -maxdepth 1 -type f -size +10M
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s