The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 4 Weeks Ago 05:12 PM
Little bit weired : Find files in UNIX w/o using find or where command jatin.jain Shell Programming and Scripting 10 09-19-2007 03:47 AM
how to find a file named vijay in a directory using find command amirthraj_12 UNIX for Dummies Questions & Answers 5 10-25-2006 02:39 PM
command find returned bash: /usr/bin/find: Argument list too long yacsil Shell Programming and Scripting 1 12-15-2003 02:38 PM
how to find a file in UNIX without find command? bluo Shell Programming and Scripting 3 09-24-2003 08:47 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2005
Registered User
 

Join Date: Jan 2005
Posts: 28
Thumbs up Find Command

Hi,

I'm looking for a command to list the biggest files of a directory and display the size.

I know the command " Find . -size +10000 -print", but It displays only the files without size details.

Hope I'm clear

Thanks,

Fabien
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-07-2005
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 164
I use this to sort a file list in size order :
ls -la | sort -bnr +4 | pg
Reply With Quote
  #3 (permalink)  
Old 01-07-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
How about:
find . -size +10000 -print | xargs -ld
Reply With Quote
  #4 (permalink)  
Old 01-07-2005
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 164
I was just going to post this also:
find . -size +1000000 -ls
Reply With Quote
  #5 (permalink)  
Old 01-07-2005
Registered User
 

Join Date: Jan 2005
Posts: 28
Thanks for your quick suggestion
Reply With Quote
  #6 (permalink)  
Old 01-08-2005
Registered User
 

Join Date: Oct 2002
Posts: 670
Interesting option Perderabo. I did'nt know you could specify ls options through the print switch...cool!
Reply With Quote
  #7 (permalink)  
Old 01-09-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
Actually, I have a typo there. It should be...

find . -size +10000 -print | xargs ls -ld

But in any event, the xargs command is reading the file names produced by the find command.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0