From owner-svn-src-head@FreeBSD.ORG Sun Nov 4 09:08:18 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C3C7C64; Sun, 4 Nov 2012 09:08:18 +0000 (UTC) (envelope-from joel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 014E88FC0A; Sun, 4 Nov 2012 09:08:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id qA498HMY040741; Sun, 4 Nov 2012 09:08:17 GMT (envelope-from joel@svn.freebsd.org) Received: (from joel@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id qA498HAl040739; Sun, 4 Nov 2012 09:08:17 GMT (envelope-from joel@svn.freebsd.org) Message-Id: <201211040908.qA498HAl040739@svn.freebsd.org> From: Joel Dahl Date: Sun, 4 Nov 2012 09:08:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242550 - head/usr.bin/du X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2012 09:08:18 -0000 Author: joel (doc committer) Date: Sun Nov 4 09:08:17 2012 New Revision: 242550 URL: http://svn.freebsd.org/changeset/base/242550 Log: Add a few basic examples. Modified: head/usr.bin/du/du.1 Modified: head/usr.bin/du/du.1 ============================================================================== --- head/usr.bin/du/du.1 Sun Nov 4 08:47:41 2012 (r242549) +++ head/usr.bin/du/du.1 Sun Nov 4 09:08:17 2012 (r242550) @@ -28,7 +28,7 @@ .\" @(#)du.1 8.2 (Berkeley) 4/1/94 .\" $FreeBSD$ .\" -.Dd July 18, 2012 +.Dd November 4, 2012 .Dt DU 1 .Os .Sh NAME @@ -191,6 +191,24 @@ or options are not specified, the block counts will be displayed in 512-byte blocks. .El +.Sh EXAMPLES +Show disk usage for all files in the current directory. Output is in +human-readable form: +.Pp +.Dl # du -ah +.Pp +Summarize disk usage in the current directory: +.Pp +.Dl # du -hs +.Pp +Summarize disk usage for a specific directory: +.Pp +.Dl # du -hs /home +.Pp +Show name and size of all C files in a specific directory. Also display a +grand total at the end: +.Pp +.Dl # du -ch /usr/src/sys/kern/*.c .Sh SEE ALSO .Xr df 1 , .Xr chflags 2 ,