The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find the 5o largest files in a directory igidttam Filesystems, Disks and Memory 8 05-16-2007 10:20 AM
list largest files in a directory & its subdirectories igidttam UNIX for Dummies Questions & Answers 6 09-25-2006 08:31 AM
file of largest size in pwd rameshparsa Shell Programming and Scripting 4 11-22-2005 09:25 AM
Finding largest file in current directory? AusTex High Level Programming 1 03-13-2005 10:03 AM
How can I get the directory size in Unix? HarryHong UNIX for Dummies Questions & Answers 1 03-01-2001 04:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2005
Registered User
 

Join Date: Oct 2004
Posts: 235
largest size directory in unix

I want to find the which directory under a directory occupy the maximum size is there is any command to find please help
Reply With Quote
Forum Sponsor
  #2  
Old 09-16-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
Some pointers: check man pages for df and sort. You should be able to figure it out then.
Reply With Quote
  #3  
Old 09-27-2005
Registered User
 

Join Date: May 2005
Posts: 31
Try du and sort.
Reply With Quote
  #4  
Old 09-29-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
Quote:
Originally Posted by odashe
Try du and sort.
Oops.. df and du... really sorry for the mixup!
Reply With Quote
  #5  
Old 09-29-2005
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Quote:
Originally Posted by blowtorch
Oops.. df and du... really sorry for the mixup!
what unix are you using?

check bdf for hp-ux
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
  #6  
Old 09-29-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
I use SunOS and HP-UX. I said that I mixed up with df and du: the OP wants to find the directory with the largest size and the code for that is
Code:
du -sk *|sort -nr
I mistakenly told the OP to check man pages for df and sort, while I should have asked the OP to check man pages for du and sort.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:15 AM.


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

Content Relevant URLs by vBSEO 3.2.0