![]() |
|
|
|
|
|||||||
| 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 |
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
More about sizes..
well it seams my su dont 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
|
|||
|
|||
|
regarding file size, normal ls -lrt with cut command is not helping? What do you mean by human readable format?
|
|
#5
|
|||
|
|||
|
i mean like: file x is 4 mega or file y is 300kb
|
|||
| Google The UNIX and Linux Forums |