Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2004 10:56:44 +0200
From:      Uwe Doering <gemini@geminix.org>
To:        questions@freebsd.org
Subject:   Re: UsersFiles and Quota
Message-ID:  <40B30A4C.6070605@geminix.org>
In-Reply-To: <20040525045422.M91680@collins-ca.com>
References:  <20040525045422.M91680@collins-ca.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40B30A4C.6070605>