Unix Shell - size of all files combined

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2006 > size of all files combined





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author size of all files combined
Gary Wessle

2006-10-27, 1:24 am

Hi

how can I obtain the total size of all files in current dir, including
all files in its directory tree as well. I mean every thing in this
directory including its sub(s).

I tried ls but that did not add them all up.

thanks
Todd H.

2006-10-27, 1:24 am

Gary Wessle <phddas@yahoo.com> writes:

> Hi
>
> how can I obtain the total size of all files in current dir, including
> all files in its directory tree as well. I mean every thing in this
> directory including its sub(s).
>
> I tried ls but that did not add them all up.


du .
du -s .
man du



--
Todd H.
http://www.toddh.net/
Todd H.

2006-10-27, 1:24 am

Gary Wessle <phddas@yahoo.com> writes:

> Hi
>
> how can I obtain the total size of all files in current dir, including
> all files in its directory tree as well. I mean every thing in this
> directory including its sub(s).


This is also handy


du -k . | sort -rn | less

--
Todd H.
http://www.toddh.net/
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com