From owner-freebsd-questions@FreeBSD.ORG Mon Dec 17 13:49:23 2007 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 5333C16A421 for ; Mon, 17 Dec 2007 13:49:23 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from mtai05.charter.net (mtai05.charter.net [209.225.8.185]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF5613C4CE for ; Mon, 17 Dec 2007 13:49:21 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from aarprv06.charter.net ([10.20.200.76]) by mtai05.charter.net (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20071217134911.USCR12551.mtai05.charter.net@aarprv06.charter.net>; Mon, 17 Dec 2007 08:49:11 -0500 Received: from agreenftp.no-ip.com ([75.137.120.205]) by aarprv06.charter.net with ESMTP id <20071217134911.TRTG14098.aarprv06.charter.net@agreenftp.no-ip.com>; Mon, 17 Dec 2007 08:49:11 -0500 Received: from localhost (localhost [127.0.0.1]) by agreenftp.no-ip.com (Postfix) with ESMTP id A752E3985E; Mon, 17 Dec 2007 08:49:10 -0500 (EST) Received: from agreenftp.no-ip.com ([127.0.0.1]) by localhost (zeus.agreenftp.no-ip.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jdDPQwzttFEY; Mon, 17 Dec 2007 08:49:05 -0500 (EST) Received: from hercules.nuvox.net (216.215.202.5.nw.nuvox.net [216.215.202.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: andy) by agreenftp.no-ip.com (Postfix) with ESMTPSA id 2D4AC3985C; Mon, 17 Dec 2007 08:49:05 -0500 (EST) X-Virus-Scanned: amavisd-new at agreenftp.no-ip.com Message-ID: <47667E61.70602@gmail.com> Date: Mon, 17 Dec 2007 08:49:21 -0500 From: Andy Greenwood User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: DSA - JCR References: <32989.217.114.136.135.1197898685.squirrel@mail.dsa.es> In-Reply-To: <32989.217.114.136.135.1197898685.squirrel@mail.dsa.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Chzlrs: 0 Cc: freebsd-questions@freebsd.org Subject: Re: How to know total number of bytes of a directory 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: Mon, 17 Dec 2007 13:49:23 -0000 DSA - JCR wrote: > Hi all > > I would like to know the total number of bytes of a directory and its > related subdirs, occupied by the files inside it. I haven't found any > command for knowning it. > # du -s /etc 17008 /etc You need read privs to all the subdirectories, otherwise you'll get permission errors and it'll skip those. Note that this displays usage in 512-byte blocks, not bytes, but you should be able to figure it out from there. > > Thanks in advance!! > > Sincerely > > Juan Coruņa > Desarrollo de Software Atlantico > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >