Computing.Net > Forums > Linux > size of the directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

size of the directory

Reply to Message Icon

Name: kumar
Date: October 23, 2002 at 23:30:22 Pacific
OS: linux7.2
CPU/Ram: p3 128
Comment:

Hai guys!
is there any way to know the size of the
directory. i.e. the total size of the
subdirectores and files in a directory. The
'ls' does not show this. what should i use.



Sponsored Link
Ads by Google

Response Number 1
Name: armin
Date: October 23, 2002 at 23:56:55 Pacific
Reply:

du -sh directory


man du


0

Response Number 2
Name: Sean Miller
Date: October 24, 2002 at 01:08:02 Pacific
Reply:

du -sk surely? (I don't recognise the h switch)

Sean


0

Response Number 3
Name: 3Dave
Date: October 24, 2002 at 04:22:38 Pacific
Reply:

"H" is to output the size in Human readable format (eg converts to XXXMb)


0

Response Number 4
Name: kumar
Date: October 24, 2002 at 08:25:11 Pacific
Reply:

Thank you very much, guys!


0

Response Number 5
Name: ramadog
Date: October 24, 2002 at 19:39:29 Pacific
Reply:

quoting 3Dave
"H" is to output the size in Human readable
format (eg converts to XXXMb)
-----------

If you want it in human readable format and
normal values for k, M and so on use -h

Using '-H' gives it in readable format using SI
units. ie uses 1000 instead of 1024


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: size of the directory

Increase the size of partition www.computing.net/answers/linux/increase-the-size-of-partition/1665.html

system font size of non kde apps www.computing.net/answers/linux/system-font-size-of-non-kde-apps/28891.html

DAT Tape compression www.computing.net/answers/linux/dat-tape-compression/19121.html