LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching Big file (https://www.linuxquestions.org/questions/linux-newbie-8/searching-big-file-639290/)

johnsonvadakara 05-02-2008 04:15 AM

Searching Big file
 
I am fresher to Linux

How we can search for big file in a given directory

Thnks in advance

jschiwal 05-02-2008 04:22 AM

Use the find command to find all files above a certain size:

find <directory> -maxdepth 1 -size +100M

The -maxdepth 1 option will prevent recursively transversing subdirectories. I don't know if you want to do that, but if there is a subdirectory with a large number of files and subdirectories, this can save considerable time if they aren't of interest.

Also read the "man file" manpage. The "info file" manual has a number of examples for more esoteric uses such as finding suid files or formating the output.

bfn924 05-02-2008 04:28 AM

You can use find using -size parameter. Details in man find


All times are GMT -5. The time now is 08:50 AM.