Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Large Files 2

Status
Not open for further replies.

darfader

Programmer
Aug 6, 2003
38
GB

Hi,

I am using this to locate large files

ls -l | sort -n +4 | tail -9

however, it only reports from the current directory

I piped it to find. but without success

Is there a way to fine the top nine largest files from a directory and it's sub-directories,


tia,
 
You can try something like this:
Code:
find . -type f -exec ls -l {} \; | sort -n +4 | tail -9


Hope This Help
PH.
 
To find all files over a specified size, use

find . -size +10000 -print

CaKiwi

"I love mankind, it's people I can't stand" - Linus Van Pelt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top