![]() |
|
|
|
|
|||||||
| 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 |
| Vector Traversing | dhanamurthy | High Level Programming | 1 | 04-30-2008 05:20 AM |
| Traversing Pascal/Delphi code using GVim | SankarV | UNIX for Dummies Questions & Answers | 0 | 02-22-2008 01:24 AM |
| how to mount a file system of a remote machine to local file system | cy163 | UNIX for Dummies Questions & Answers | 2 | 01-31-2008 05:04 AM |
| How to find a file whick is consuming larger disk space in file system | lokeshpashine | UNIX for Dummies Questions & Answers | 3 | 01-04-2008 01:26 PM |
| Traversing thru dirs and deleting files based on date | ravi2082 | Shell Programming and Scripting | 5 | 07-18-2007 01:28 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Traversing a file system
I'm pretty new at this UNIX stuff, and this may be a simple question but I'm kind of stuck
Let's say I have a large directory structure of .essay files, where I saved all of the essays that I did over the last few years. Not all of the .essay files are in the same directory (all in the same root, but different subs). I wants to find out which 10 essay files use up the most disk space. Apparantly there is a one line command that I could run to find out? I think it's supposed to involve 'du' Help pleeease! Pat |
| Forum Sponsor | ||
|
|
|
|||
|
U said the answer urself...
use..
du -a | sort -rn | head -n 10 you can use this if you want to omit the directory list obtained above du -a | grep '.*\..*\..*' | sort -nr | head -n 10 Last edited by KayYesVee; 02-10-2006 at 06:28 AM. |
|||
| Google The UNIX and Linux Forums |