LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   To search for files of a particular size (https://www.linuxquestions.org/questions/linux-general-1/to-search-for-files-of-a-particular-size-264310/)

mufy 12-09-2004 12:24 AM

To search for files of a particular size
 
First of all, I'd like to find certain files with a particular pattern in their names. Then among those listed, I'd like to list only those with a minimum file size.

How can I get this done? Is there a single command with the usage of pipes, or do I have to carry out a sequence of command executions?

Regards,
Mufy

MartinN 12-09-2004 12:44 AM

Hi Mufy!

This command:
Code:

find /home -name '*mpeg' -size +10000k
will find all mpeg files in your /home with a size bigger than 10000 kilobytes. For more options on size, see
Code:

man find
Martin


All times are GMT -5. The time now is 11:44 AM.