summaryrefslogtreecommitdiff
path: root/quota.1
blob: 040650a93c63cdade09a8574463c33e5e7f5e875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
.TH QUOTA 1
.SH NAME
quota \- display disk usage and limits
.SH SYNOPSIS
.B quota
[
.B -F
.I format-name
] [
.BR -guvsil \ |
.B q
]
.br
.B quota
[
.B -F
.I format-name
] [
.BR -uvsil \ |
.B q
]
.IR user ...
.br
.B quota
[
.B -F
.I format-name
] [
.BR -gvsil \ |
.B q
]
.IR group ...
.SH DESCRIPTION
.B quota
displays users' disk usage and limits.
By default only the user quotas are printed.
.PP
.B quota
reports the quotas of all the filesystems listed in
.BR /etc/mtab .
For filesystems that are NFS-mounted a call to the rpc.rquotad on
the server machine is performed to get the information.
.SH OPTIONS
.TP
.B \-F \f2format-name\f1
Show quota for specified format (ie. don't perform format autodetection).
Possible format names are:
.B vfsold
(version 1 quota),
.B vfsv0
(version 2 quota),
.B rpc
(quota over NFS),
.B xfs
(quota on XFS filesystem)
.TP
.B \-g
Print group quotas for the group 
of which the user is a member.
The optional 
.B group
argument(s) restricts the display to the specified group(s).
.TP
.B \-u
flag is equivalent to the default.
.TP
.B \-v
will display quotas on filesystems
where no storage is allocated.
.TP
.B \-s
option will make
.BR quota (1)
try to choose units for showing limits, used space and used inodes.
.TP
.B \-i
ignore mountpoints mounted by automounter
.TP
.B \-l
report quotas only on local filesystems (ie. ignore NFS mounted filesystems).
.TP
.B \-q
Print a more terse message,
containing only information
on filesystems where usage is over quota.
.TP
.B \-Q
Do not print error message if connection to rpc.rquotad is refused (usually this happens
when rpc.rquotad is not running on the server).
.LP
Specifying both
.B \-g
and
.B \-u
displays both the user quotas and the group quotas (for
the user).
.LP
Only the super-user may use the
.B \-u
flag and the optional
.B user
argument to view the limits of other users.
Non-super-users can use the the
.B \-g
flag and optional
.B group
argument to view only the limits of groups of which they are members.
.LP
The
.B \-q
flag takes precedence over the
.B \-v
flag.
.SH DIAGNOSTICS
If
.B quota
exits with a non-zero status, one or more filesystems
are over quota.
.SH FILES
.PD 0
.TP 20
.B aquota.user " or " aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
.TP 20
.B quota.user " or " quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
.TP
.B /etc/mtab
default filesystems
.PD
.SH SEE ALSO
.BR quotactl (2),
.BR fstab (5),
.BR edquota (8),
.BR quotacheck (8),
.BR quotaon (8),
.BR repquota (8)