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