From owner-freebsd-questions@FreeBSD.ORG Tue May 25 01:57:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F8A716A4CE for ; Tue, 25 May 2004 01:57:03 -0700 (PDT) Received: from gen129.n001.c02.escapebox.net (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE07143D2D for ; Tue, 25 May 2004 01:56:59 -0700 (PDT) (envelope-from gemini@geminix.org) Message-ID: <40B30A4C.6070605@geminix.org> Date: Tue, 25 May 2004 10:56:44 +0200 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org References: <20040525045422.M91680@collins-ca.com> In-Reply-To: <20040525045422.M91680@collins-ca.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1BSXjq-0002oh-00; Tue, 25 May 2004 10:56:46 +0200 Subject: Re: UsersFiles and Quota X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 08:57:03 -0000 Chris Collins wrote: > Hello All > > Is there a way to list files on my system that belong to a certain user. I > have quotas enabled and cannot find out where all the space is being used. With quotas enabled this should be easy. Use 'repquota' and sort the list by allocated disk space: repquota -u /path/to/filesystem | sort -rn +2 -3 That's less taxing on the system than using 'find', and it also takes into account files that a user might have deleted but still holds open and therefore allocated. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net