The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-29-2005
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
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
  #2 (permalink)  
Old 08-29-2005
plimpix plimpix is offline
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 09:25 AM.. Reason: thinking something else!
  #3 (permalink)  
Old 08-30-2005
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
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
  #4 (permalink)  
Old 08-30-2005
adurga adurga is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 19
regarding file size, normal ls -lrt with cut command is not helping? What do you mean by human readable format?
  #5 (permalink)  
Old 08-30-2005
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
i mean like: file x is 4 mega or file y is 300kb
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0