xref: /netbsd-src/usr.bin/quota/quota.1 (revision 7d3af8c6a2070d16ec6d1aef203d052d6683100d)
1.\"	$NetBSD: quota.1,v 1.19 2012/05/12 21:43:09 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 May 12, 2012
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 ghu
44.Op Fl v | Fl q
45.Nm
46.Op Fl hu
47.Op Fl v | Fl q
48.Ar user
49.Nm
50.Op Fl gh
51.Op Fl v | Fl q
52.Ar group
53.Nm
54.Fl d
55.Op Fl gh
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
66Query the kernel for default user or group quota instead of a specific
67user or group.
68.It Fl g
69Print group quotas for the group of which the user is a member.
70The optional
71.Fl u
72flag is equivalent to the default.
73.It Fl h
74Numbers are displayed in a human readable format.
75.It Fl q
76Print a more terse message, containing only information
77on file systems where usage is over quota.
78.It Fl v
79.Nm
80will display quotas on file systems where no storage is allocated.
81.El
82.Pp
83Specifying both
84.Fl g
85and
86.Fl u
87displays both the user quotas and the group quotas (for
88the user).
89.Pp
90Only the super-user may use the
91.Fl u
92flag and the optional
93.Ar user
94argument to view the limits of other users.
95Non-super-users can use the
96.Fl g
97flag and optional
98.Ar group
99argument to view only the limits of groups of which they are members.
100.Pp
101Only the super-user may use the
102.Fl d
103flag.
104.Pp
105The
106.Fl q
107flag takes precedence over the
108.Fl v
109flag.
110.Pp
111.Nm
112tries to report the quotas of all mounted file systems.
113If the file system is mounted via
114.Em NFS
115it will attempt to contact the
116.Xr rpc.rquotad 8
117daemon on the
118.Em NFS
119server.
120If
121.Nm
122exits with a non-zero status, one or more file systems
123are over quota.
124.Sh SEE ALSO
125.Xr libquota 3 ,
126.Xr fstab 5 ,
127.Xr edquota 8 ,
128.Xr quotacheck 8 ,
129.Xr quotaon 8 ,
130.Xr repquota 8 ,
131.Xr rpc.rquotad 8
132.Sh HISTORY
133The
134.Nm
135command appeared in
136.Bx 4.2 .
137