1.\" $OpenBSD: quota.1,v 1.14 2007/05/31 19:20:14 jmc Exp $ 2.\" 3.\" Copyright (c) 1983, 1990, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" This code is derived from software contributed to Berkeley by 7.\" Robert Elz at The University of Melbourne. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. Neither the name of the University nor the names of its contributors 18.\" may be used to endorse or promote products derived from this software 19.\" without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" SUCH DAMAGE. 32.\" 33.\" from: @(#)quota.1 8.1 (Berkeley) 6/6/93 34.\" 35.Dd $Mdocdate: May 31 2007 $ 36.Dt QUOTA 1 37.Os 38.Sh NAME 39.Nm quota 40.Nd display disk usage and limits 41.Sh SYNOPSIS 42.Nm quota 43.Op Fl q | v 44.Op Fl gu 45.Nm quota 46.Op Fl q | v 47.Fl g 48.Ar group ... 49.Nm quota 50.Op Fl q | v 51.Fl u 52.Ar user ... 53.Sh DESCRIPTION 54.Nm quota 55displays users' disk usage and limits. 56By default only the user quotas are printed. 57.Pp 58The options are as follows: 59.Bl -tag -width Ds 60.It Fl g 61Print group quotas for the group 62of which the user is a member. 63.It Fl q 64Print a more terse message, 65containing only information 66on filesystems where usage is over quota. 67.It Fl u 68Print user quotas for the user. 69This flag is equivalent to the default. 70.It Fl v 71.Nm quota 72will display quotas on filesystems 73where no storage is allocated. 74.El 75.Pp 76Specifying both 77.Fl g 78and 79.Fl u 80displays both the user quotas and the group quotas (for 81the user). 82.Pp 83Only the superuser may use the 84.Fl u 85flag and the optional 86.Ar user 87argument to view the limits of other users. 88Non-superusers can use the 89.Fl g 90flag and optional 91.Ar group 92argument to view only the limits of groups of which they are members. 93.Pp 94The 95.Fl q 96flag takes precedence over the 97.Fl v 98flag. 99.Pp 100.Nm quota 101tries to report the quotas of all mounted filesystems. 102If the filesystem is mounted via NFS, 103it will attempt to contact the 104.Xr rpc.rquotad 8 105daemon on the 106NFS server. 107For FFS 108filesystems, quotas must be turned on in 109.Pa /etc/fstab . 110If 111.Nm quota 112exits with a non-zero status, one or more filesystems 113are over quota. 114.Sh FILES 115.Bl -tag -width quota.group -compact 116.It Pa quota.user 117located at the filesystem root with user quotas 118.It Pa quota.group 119located at the filesystem root with group quotas 120.It Pa /etc/fstab 121to find filesystem names and locations 122.El 123.Sh SEE ALSO 124.Xr quotactl 2 , 125.Xr fstab 5 , 126.Xr edquota 8 , 127.Xr quotacheck 8 , 128.Xr quotaon 8 , 129.Xr repquota 8 , 130.Xr rpc.rquotad 8 131.Sh HISTORY 132The 133.Nm quota 134command appeared in 135.Bx 4.2 . 136