Date: Sat, 5 Jan 2008 23:55:43 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Paul Schmehl <pauls@utdallas.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Paging Matthew Seaman Message-ID: <20080105215543.GC53175@kobe.laptop> In-Reply-To: <179863EA8C3D6945412CA598@utd59514.utdallas.edu> References: <179863EA8C3D6945412CA598@utd59514.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2008-01-04 09:59, Paul Schmehl <pauls@utdallas.edu> wrote: > I figure if anyone knows the answer to this off the top of their head, > Matthew will. I'm sure Matthew knows the answer, but you should use a more relevant subject. This way the archived posts will be more useful to future posters. > I've been reading the man pages for du and df, but I can't find the right > combination. I'd like to get the type of output that df -h gives you but > only for one mount point or even one directory. Is there a tool that can > do that? (IOW, I'd like to run du -h but only get the totals for > directories.) Use the -s option of the `du' utility: keramida@kobe:/home/keramida$ du -sk tmp/emacs-src 187436 tmp/emacs-src keramida@kobe:/home/keramida$ du -sh tmp/emacs-src 183M tmp/emacs-src keramida@kobe:/home/keramida$
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080105215543.GC53175>