On Sat, Jun 28, 2008 at 12:30 PM, Mike Bird <<a href="mailto:mgb-ubuntu@yosemite.net">mgb-ubuntu@yosemite.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Sat June 28 2008 10:15:34 Robert Dailey wrote:<br>
> On Sat, Jun 28, 2008 at 12:07 PM, Corey Bettenhausen<br>
> <<a href="mailto:corey@31415926535.com">corey@31415926535.com</a>><br>
><br>
> wrote:<br>
> > Robert Dailey wrote:<br>
> > > On Sat, Jun 28, 2008 at 11:11 AM, Karl Larsen <<a href="mailto:k5di@zianet.com">k5di@zianet.com</a>> wrote:<br>
> > >> Robert Dailey wrote:<br>
> > >>> Hi,<br>
> > >>><br>
> > >>> I'm currently using Ubuntu Server 8. Is there a way to use the 'ls'<br>
> > >><br>
> > >> command<br>
> > >><br>
> > >>> to display the size of a directory? That is, the size should be the<br>
> ><br>
> > added<br>
> ><br>
> > >>> size of the contents of files and other subdirectories (recursive).<br>
> > >><br>
> > >>     I use $du -h which tells you how many gigabytes you have.<br>
> > ><br>
> > > That's almost what I'm looking for, except I don't want it to be<br>
> ><br>
> > recursive.<br>
> > So, which is it?  Recursive or not?  Either way, "man du".  Take note of<br>
> > the "--max-depth" option.  I usually like the "-c" option as well.<br>
> > -Corey<br>
><br>
> When I mentioned "recursive" in my original post, I was referring to the<br>
> math- The math that calculates the size of the folder should be recursive,<br>
> in that it will search the directory tree for all files under the folder in<br>
> question and add their sizes together to form the final directory size. The<br>
> display routine itself should *NOT* be recursive, as I only care to see the<br>
> size of a specific folder and NOT its contents.<br>
<br>
</div></div>When you carefully read "man du" before posting this question you must have<br>
accidently overlooked the "-s" switch.</blockquote></div><br>I posted this question because I didn't know about 'du'...<br><br>-s switch did the trick.<br>