[102134] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Get directory size?

daemon@ATHENA.MIT.EDU (Mark McGlone)
Tue Dec 1 15:55:22 1998

From: Mark McGlone <dmcglon1@san.rr.com>
To: redhat-list@redhat.com
Date: Tue, 1 Dec 1998 12:52:04 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Tue, 01 Dec 1998, George Lenzer wrote:
>Is there a way to find out how much data a directory contains?  Although
>I've been using Linux for close to eight months now, I still haven't found
>any obvious way to get 'ls' or 'df' to display the size of a directory's
>contents in K or Megs.  Any suggestions?
>

the 'du' command for disk usage

for summary of whole directory in megabytes:
du -ms


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post