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
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 02: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 06: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 02:26 PM
Traversing thru dirs and deleting files based on date ravi2082 Shell Programming and Scripting 5 07-18-2007 01:28 PM

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

Join Date: Feb 2006
Posts: 1
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
Reply With Quote
Forum Sponsor
  #2  
Old 02-09-2006
Registered User
 

Join Date: Feb 2006
Posts: 2
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 07:28 AM.
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 09:11 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