xref: /netbsd-src/usr.bin/quota/quota.1 (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1.\"	$NetBSD: quota.1,v 1.16 2011/03/06 17:25:32 wiz 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 March 6, 2011
36.Dt QUOTA 1
37.Os
38.Sh NAME
39.Nm quota
40.Nd display disk usage and limits
41.Sh SYNOPSIS
42.Nm
43.Op Fl Dghu
44.Op Fl v | Fl q
45.Nm
46.Op Fl Dhu
47.Op Fl v | Fl q
48.Ar user
49.Nm
50.Op Fl Dgh
51.Op Fl v | Fl q
52.Ar group
53.Nm
54.Fl d
55.Op Fl Dgh
56.Op Fl v | Fl q
57.Sh DESCRIPTION
58.Nm
59displays users' disk usage and limits.
60By default only the user quotas are printed.
61.Pp
62Options:
63.Pp
64.Bl -tag -width Ds
65.It Fl D
66Debug: print plist sent to and received from kernel.
67.It Fl d
68Query the kernel for default user or group quota instead of a specific
69user or group.
70.It Fl g
71Print group quotas for the group of which the user is a member.
72The optional
73.Fl u
74flag is equivalent to the default.
75.It Fl h
76Numbers are displayed in a human readable format.
77.It Fl q
78Print a more terse message, containing only information
79on file systems where usage is over quota.
80.It Fl v
81.Nm
82will display quotas on file systems where no storage is allocated.
83.El
84.Pp
85Specifying both
86.Fl g
87and
88.Fl u
89displays both the user quotas and the group quotas (for
90the user).
91.Pp
92Only the super-user may use the
93.Fl u
94flag and the optional
95.Ar user
96argument to view the limits of other users.
97Non-super-users can use the
98.Fl g
99flag and optional
100.Ar group
101argument to view only the limits of groups of which they are members.
102.Pp
103Only the super-user may use the
104.Fl d
105flag.
106.Pp
107The
108.Fl q
109flag takes precedence over the
110.Fl v
111flag.
112.Pp
113.Nm
114tries to report the quotas of all mounted file systems.
115If the file system is mounted via
116.Em NFS
117it will attempt to contact the
118.Xr rpc.rquotad 8
119daemon on the
120.Em NFS
121server.
122If
123.Nm
124exits with a non-zero status, one or more file systems
125are over quota.
126.Sh SEE ALSO
127.Xr quotactl 2 ,
128.Xr fstab 5 ,
129.Xr edquota 8 ,
130.Xr quotacheck 8 ,
131.Xr quotaon 8 ,
132.Xr repquota 8 ,
133.Xr rpc.rquotad 8
134.Sh HISTORY
135The
136.Nm
137command appeared in
138.Bx 4.2 .
139