Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 38 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 at 17:33
    
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 at 13:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.