1. Home
  2. Getting Started
  3. Support Resources
  4. How to Find and List Files Bigger or Smaller Than Specific Size in Linux

How to Find and List Files Bigger or Smaller Than Specific Size in Linux

This tutorial will explore a list of helpful disk space usage command lines in Linux, with examples of use for each command line.

How to find and list files bigger than 100mb in Linux

If you wish to find all files over 100M and to see where they are located and what is their size:

find . -type f -size +100M -exec ls -lh {} \;

I searched files over 100MB in my public_html directory in my below example.

[chemiccl@rs-syd public_html]$ find . -type f -size +100M -exec ls -lh {} \;

-rw-r--r-- 1 chemiccl chemiccl 126M Apr  1 17:23 ./screemcast.mov

Command-line and each parameter are explained here.

You can use size switch for other formats, such as

  • “c” for bytes
  • “w” for two-byte words
  • “k” for Kilobytes
  • “M” for Megabytes
  • “G” for Gigabytes

How to find and list files bigger than 1GB in Linux

For example, to find files that are bigger than 1GB, use the following command:

find . -type f -size +1G -exec ls -lh {} \;

How to find and list files smaller than 100mb in Linux

If you wish to find all files under 100M and to see where they are located and what is their size:

find . -type f -size -100M -exec ls -lh {} \;

In my below example, I searched files over 100MB in my public_html directory.

[chemiccl@rs-syd public_html]$ find . -type f -size -100M -exec ls -lh {} \;

-rw-r--r-- 1 chemiccl chemiccl 56M Apr  1 17:23 ./screemcast.mov

Command-line and each parameter explained here.

You can use size switch for other formats, such as

  • “c” for bytes
  • “w” for two-byte words
  • “k” for Kilobytes
  • “M” for Megabytes
  • “G” for Gigabytes

Tired of hassling with website issues?  ChemiCloud is the managed hosting solution designed to save you time and money! 🤓 Check out our web hosting plans!

How to find and list files smaller than 1GB in Linux

For example, to find files which are smaller than 1GB, use the following command:

find . -type f -size -1G -exec ls -lh {} \;

How to find and list files between a certain size in Linux

You might wonder how to find and list files between a certain size. For instance, you can find files between 100MB and 500MB using the following command:

find . -type f -size +100M -size -500M -exec ls -l {} +

You can use size switch for other formats, such as

  • “c” for bytes
  • “w” for two-byte words
  • “k” for Kilobytes
  • “M” for Megabytes
  • “G” for Gigabytes
Updated on April 13, 2022

Was this article helpful?

Related Articles

TRY CHEMICLOUD RISK-FREE
Fast, secure cloud hosting. 18 global data centers. Unhappy with your web host?
👉 Migrate for Free

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.