LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2008, 04:15 AM   #1
johnsonvadakara
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Question Searching Big file


I am fresher to Linux

How we can search for big file in a given directory

Thnks in advance
 
Old 05-02-2008, 04:22 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
Old 05-02-2008, 04:28 AM   #3
bfn924
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
You can use find using -size parameter. Details in man find
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
searching a file nick2price Linux - Newbie 8 04-08-2008 06:32 PM
Searching for a file Macska Linux - Software 1 11-25-2007 05:22 PM
awk searching a string from a file within another file changcheh Linux - Software 7 12-29-2006 09:18 AM
File Searching JC404 Linux - Newbie 2 08-02-2003 08:45 PM
searching through a file albean Linux - Newbie 8 11-23-2002 08:16 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration