xref: /freebsd/usr.bin/quota/quota.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
19b50d902SRodney W. Grimes.\" Copyright (c) 1983, 1990, 1993
29b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
39b50d902SRodney W. Grimes.\"
49b50d902SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
59b50d902SRodney W. Grimes.\" Robert Elz at The University of Melbourne.
69b50d902SRodney W. Grimes.\"
79b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
89b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
99b50d902SRodney W. Grimes.\" are met:
109b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
119b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
129b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
139b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
149b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
15*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
169b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
179b50d902SRodney W. Grimes.\"    without specific prior written permission.
189b50d902SRodney W. Grimes.\"
199b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
209b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
219b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
229b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
239b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
249b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
259b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
269b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
279b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
289b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
299b50d902SRodney W. Grimes.\" SUCH DAMAGE.
309b50d902SRodney W. Grimes.\"
31cf84d28bSMike Pritchard.Dd February 3, 2007
329b50d902SRodney W. Grimes.Dt QUOTA 1
3362500372SRuslan Ermilov.Os
349b50d902SRodney W. Grimes.Sh NAME
359b50d902SRodney W. Grimes.Nm quota
369b50d902SRodney W. Grimes.Nd display disk usage and limits
379b50d902SRodney W. Grimes.Sh SYNOPSIS
388fe908efSRuslan Ermilov.Nm
39478bf774SRuslan Ermilov.Op Fl ghlu
402e1f5ad9SMike Pritchard.Op Fl f Ar path
41cf84d28bSMike Pritchard.Op Fl v | q | r
428fe908efSRuslan Ermilov.Nm
43478bf774SRuslan Ermilov.Op Fl hlu
442e1f5ad9SMike Pritchard.Op Fl f Ar path
45cf84d28bSMike Pritchard.Op Fl v | q | r
46e608ec61SIan Dowse.Ar user ...
478fe908efSRuslan Ermilov.Nm
48e608ec61SIan Dowse.Fl g
49478bf774SRuslan Ermilov.Op Fl hl
502e1f5ad9SMike Pritchard.Op Fl f Ar path
51cf84d28bSMike Pritchard.Op Fl v | q | r
52e608ec61SIan Dowse.Ar group ...
539b50d902SRodney W. Grimes.Sh DESCRIPTION
54e8937ba0SPhilippe CharnierThe
55e8937ba0SPhilippe Charnier.Nm
56e8937ba0SPhilippe Charnierutility displays users' disk usage and limits.
579b50d902SRodney W. GrimesBy default only the user quotas are printed.
58478bf774SRuslan ErmilovDisk block usage and limits are shown in 1024-byte blocks.
599b50d902SRodney W. Grimes.Pp
60b189011dSPhilippe CharnierThe following options are available:
61b189011dSPhilippe Charnier.Bl -tag -width indent
622e1f5ad9SMike Pritchard.It Fl f Ar path
632e1f5ad9SMike PritchardOnly display quota information for the file system
642e1f5ad9SMike Pritchardthat contains the specified path.
652e1f5ad9SMike PritchardThis can be any file within a mounted file system.
669b50d902SRodney W. Grimes.It Fl g
679b50d902SRodney W. GrimesPrint group quotas for the group
689b50d902SRodney W. Grimesof which the user is a member.
69478bf774SRuslan Ermilov.It Fl h
70478bf774SRuslan Ermilov"Human-readable" output.
71478bf774SRuslan ErmilovUse unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
72e56990e4SIan Dowse.It Fl l
73e56990e4SIan DowseDo not report quotas on
74e56990e4SIan Dowse.Tn NFS
75e56990e4SIan Dowsefile systems.
769b50d902SRodney W. Grimes.It Fl q
779b50d902SRodney W. GrimesPrint a more terse message,
789b50d902SRodney W. Grimescontaining only information
799b50d902SRodney W. Grimeson file systems where usage is over quota.
802e1f5ad9SMike PritchardThe
812e1f5ad9SMike Pritchard.Fl q
822e1f5ad9SMike Pritchardflag takes precedence over the
832e1f5ad9SMike Pritchard.Fl v
842e1f5ad9SMike Pritchardflag.
852e1f5ad9SMike Pritchard.It Fl r
862e1f5ad9SMike PritchardDisplay the raw quota information as it appears in the quota structure.
87cf84d28bSMike PritchardNon-zero time values will also be displayed in
882e1f5ad9SMike Pritchard.Xr ctime 3
892e1f5ad9SMike Pritchardformat.
902e1f5ad9SMike PritchardThis option implies
912e1f5ad9SMike Pritchard.Fl v
922e1f5ad9SMike Pritchardand will override the
932e1f5ad9SMike Pritchard.Fl q
942e1f5ad9SMike Pritchardflag.
95e608ec61SIan Dowse.It Fl u
96e608ec61SIan DowsePrint the user quotas.
97e608ec61SIan DowseThis is the default unless
98e608ec61SIan Dowse.Fl g
99e608ec61SIan Dowseis specified.
100e608ec61SIan Dowse.It Fl v
101e608ec61SIan DowseDisplay quotas on file systems
102e608ec61SIan Dowsewhere no storage is allocated.
1039b50d902SRodney W. Grimes.El
1049b50d902SRodney W. Grimes.Pp
1059b50d902SRodney W. GrimesSpecifying both
1069b50d902SRodney W. Grimes.Fl g
1079b50d902SRodney W. Grimesand
1089b50d902SRodney W. Grimes.Fl u
1099b50d902SRodney W. Grimesdisplays both the user quotas and the group quotas (for
1109b50d902SRodney W. Grimesthe user).
1119b50d902SRodney W. Grimes.Pp
1129b50d902SRodney W. GrimesOnly the super-user may use the
1139b50d902SRodney W. Grimes.Fl u
1149b50d902SRodney W. Grimesflag and the optional
1159b50d902SRodney W. Grimes.Ar user
1169b50d902SRodney W. Grimesargument to view the limits of other users.
117e83201b4SWolfram SchneiderNon-super-users can use the
1189b50d902SRodney W. Grimes.Fl g
1199b50d902SRodney W. Grimesflag and optional
1209b50d902SRodney W. Grimes.Ar group
1219b50d902SRodney W. Grimesargument to view only the limits of groups of which they are members.
1229b50d902SRodney W. Grimes.Pp
1239b50d902SRodney W. GrimesThe
124e8937ba0SPhilippe Charnier.Nm
125e8937ba0SPhilippe Charnierutility tries to report the quotas of all mounted file systems.
1269288f266SThomas GraichenIf the file system is mounted via
127b189011dSPhilippe Charnier.Tn NFS ,
1289288f266SThomas Graichenit will attempt to contact the
1299288f266SThomas Graichen.Xr rpc.rquotad 8
1309288f266SThomas Graichendaemon on the
131b189011dSPhilippe Charnier.Tn NFS
1329288f266SThomas Graichenserver.
1339288f266SThomas GraichenFor
134b189011dSPhilippe Charnier.Tn UFS
1359288f266SThomas Graichenfile systems, quotas must be turned on in
1369b50d902SRodney W. Grimes.Pa /etc/fstab .
1379b50d902SRodney W. GrimesIf
1389d63ad49SPhilippe Charnier.Nm
1399b50d902SRodney W. Grimesexits with a non-zero status, one or more file systems
1402e1f5ad9SMike Pritchardare over quota or the path specified with the
1412e1f5ad9SMike Pritchard.Fl f
1422e1f5ad9SMike Pritchardoption does not exist.
143e56990e4SIan Dowse.Pp
144e56990e4SIan DowseIf the
145e56990e4SIan Dowse.Fl l
146e56990e4SIan Dowseflag is specified,
147e56990e4SIan Dowse.Nm
148e56990e4SIan Dowsewill not check
149e56990e4SIan Dowse.Tn NFS
150e56990e4SIan Dowsefile systems.
1519b50d902SRodney W. Grimes.Sh FILES
1529b50d902SRodney W. Grimes.Bl -tag -width quota.group -compact
1539b50d902SRodney W. Grimes.It Pa quota.user
1549b50d902SRodney W. Grimeslocated at the file system root with user quotas
1559b50d902SRodney W. Grimes.It Pa quota.group
1569b50d902SRodney W. Grimeslocated at the file system root with group quotas
1579b50d902SRodney W. Grimes.It Pa /etc/fstab
1589b50d902SRodney W. Grimesto find file system names and locations
1599b50d902SRodney W. Grimes.El
1609b50d902SRodney W. Grimes.Sh SEE ALSO
1619b50d902SRodney W. Grimes.Xr quotactl 2 ,
1622e1f5ad9SMike Pritchard.Xr ctime 3 ,
1639b50d902SRodney W. Grimes.Xr fstab 5 ,
1649b50d902SRodney W. Grimes.Xr edquota 8 ,
1659b50d902SRodney W. Grimes.Xr quotacheck 8 ,
1669b50d902SRodney W. Grimes.Xr quotaon 8 ,
1679288f266SThomas Graichen.Xr repquota 8 ,
1689288f266SThomas Graichen.Xr rpc.rquotad 8
1696c7216dfSRuslan Ermilov.Sh HISTORY
1706c7216dfSRuslan ErmilovThe
1716c7216dfSRuslan Ermilov.Nm
1726c7216dfSRuslan Ermilovcommand appeared in
1736c7216dfSRuslan Ermilov.Bx 4.2 .
174