How to determine directory size ?

Bob Goodwin bobgoodwin at att.net
Mon Mar 7 16:36:43 UTC 2005


Gustavo Seabra wrote:

>On Mon, 07 Mar 2005 11:10:14 -0500, Bob Goodwin <bobgoodwin at att.net> wrote:
>  
>
>>I have several ways to display directory and file listings but none
>>total the directory size. I would like to know the size before
>>attempting to copy to a CD for back up. xcdroast tells me after I've
>>entered all the data but by that time I may have too much or less than
>>optimum.
>>
>>How can I get the size in advance?
>>
>>Bob Goodwin    Zuni, Virginia
>>    
>>
>
>The command you need is ' du ' (for disk usage, I believe). ' man du '
>for more details. If you just want the size of the current directory
>(including subdirectories)
>
>$ du -sh
>  
>
Ok, that's exactly what I needed.  I  knew there was a command I'd seen 
but couldn't find it.
Incipient Altzheimers  perhaps?

Thanks much.

Bob Goodwin




More information about the fedora-list mailing list