Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I make ls (or any other particular command) to list me only files bigger than a specific file size?

share|improve this question
up vote 65 down vote accepted

Use find and its -size flag.

To find files larger than 100MB:

find . -type f -size +100M

If you want the current dir only:

find . -maxdepth 1 -type f -size +100M
share|improve this answer

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

find . -type f -size +100M -exec ls -lh {} \;
share|improve this answer
1  
Does the same as @Nifle's first command – Canadian Luke May 21 '14 at 17:33
1  
I think it would be easier to use printf parameter -printf "%p %s". See: unixhelp.ed.ac.uk/CGI/man-cgi?find – Nux Nov 12 '14 at 13:53
    
@Nux: nice tip. -printf '%9s %p\n' worked well for me. – seanf May 29 '15 at 5:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .