From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 22:34:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4C8216A418 for ; Sat, 5 Jan 2008 22:34:18 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out-01.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 4F55A13C43E for ; Sat, 5 Jan 2008 22:34:17 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.13.8/8.13.8) with ESMTP id m05LtkRx015718; Sat, 5 Jan 2008 23:55:46 +0200 Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-02.forthnet.gr (8.14.1/8.14.1) with ESMTP id m05Ltk2W023125; Sat, 5 Jan 2008 23:55:46 +0200 Received: from kobe.laptop (ppp5-162.adsl.forthnet.gr [62.1.228.162]) by MX-IN-05.forthnet.gr (8.14.2/8.14.2) with ESMTP id m05LtjAk020759; Sat, 5 Jan 2008 23:55:46 +0200 Authentication-Results: MX-IN-05.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-05.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m05LtiFM053291; Sat, 5 Jan 2008 23:55:44 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m05Ltho5053290; Sat, 5 Jan 2008 23:55:44 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 5 Jan 2008 23:55:43 +0200 From: Giorgos Keramidas To: Paul Schmehl Message-ID: <20080105215543.GC53175@kobe.laptop> References: <179863EA8C3D6945412CA598@utd59514.utdallas.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179863EA8C3D6945412CA598@utd59514.utdallas.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Paging Matthew Seaman X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2008 22:34:19 -0000 On 2008-01-04 09:59, Paul Schmehl 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$