Re: How to determine directory size ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gustavo Seabra wrote:

On Mon, 07 Mar 2005 11:10:14 -0500, Bob Goodwin <bobgoodwin@xxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux