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
Check size and rotate log script. ashishT HP-UX 3 12-16-2005 03:43 PM
file size check malaymaru Shell Programming and Scripting 2 10-18-2005 09:26 PM
Check file size alnita UNIX for Dummies Questions & Answers 6 06-20-2005 11:34 AM
How to check if 3 files have same size in directory oggle Shell Programming and Scripting 5 02-16-2005 09:51 AM
check logfile size dozy Shell Programming and Scripting 4 05-27-2003 03:26 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-29-2005
Registered User
 

Join Date: Aug 2005
Posts: 229
How to check directory size

how say I have directory how can I get the directory size in mega and if it less then 1 mega so byts
Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 08-29-2005
Registered User
 

Join Date: May 2005
Location: Scotland
Posts: 28
older versions of du don't have this as an option but you can download fileutils from say www.sunfreeware.com for solaris. I'm sure there are such sites for hp-ux etc as well..

du -h

would give you human readable.

Last edited by plimpix; 08-29-2005 at 06:25 AM. Reason: thinking something else!
Reply With Quote
  #3  
Old 08-30-2005
Registered User
 

Join Date: Aug 2005
Posts: 229
More about sizes..
well it seams my su don’t support su –h (its itanium machine)
is there any way to get the same result with script ? I can't install any thing new here.
one more question about getting the size of afile ..
say if ilike to get file size in houmen readable format when I sort the files with ls or ll can it be done?
thanks for the helpers
Reply With Quote
  #4  
Old 08-30-2005
Registered User
 

Join Date: Mar 2005
Posts: 18
regarding file size, normal ls -lrt with cut command is not helping? What do you mean by human readable format?
Reply With Quote
  #5  
Old 08-30-2005
Registered User
 

Join Date: Aug 2005
Posts: 229
i mean like: file x is 4 mega or file y is 300kb
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:16 PM.


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