![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unix Top Command and sorting by CPU Usage | davemehta | UNIX for Dummies Questions & Answers | 5 | 4 Weeks Ago 07:09 PM |
| Disk Usage in GB and Unix command to find the biggest file/folder | manas6 | UNIX for Dummies Questions & Answers | 8 | 07-30-2008 04:54 AM |
| Hard disk usage is 100% Busy for any command | npcrao | AIX | 3 | 11-14-2007 03:18 AM |
| Disk Usage in Unix | Shilpi | Shell Programming and Scripting | 3 | 08-03-2007 05:14 AM |
| unix top command (memory usage) | gfhgfnhhn | UNIX for Advanced & Expert Users | 2 | 03-17-2006 05:33 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
disk usage command on unix?
hi,
Can anyone tell me how I make a tree on the console showing the largest folders on my UNIX system? I want to know where are located the biggest files so I can free some disk space. thanks a lot. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
What I like to do is cd to the top directory in the filesystem that is too full. And then I do:
du -sk * | sort -n The last few lines are the most interesting. It is not a tree, but a tree would be too much info. |
|
#3
|
||||
|
||||
|
Quote:
du -sk * | sort -nr | head -10 Then the first few lines will be the most interesting --GRIN-- |
|
#4
|
||||
|
||||
|
I've tried stuff like that, but too often I go back and do the du again because I didn't see enough. My way, when I go back to the window I am probably looking at what I want to see. If not, I just scroll down. A "du -sk" is an expensive operation and I don't think it's wise to discard most of the data. We have some very large file systems. A "du -sk *" can take 10 minutes. No record, I know. But I'm bummed out if I need to repeat it. I also frequently have users breathing down my neck demanding immediate free space..
Of course, if I was getting paid by the hour, that would be whole 'nother stretch of road. |
||||
| Google The UNIX and Linux Forums |