| @@ -1,159 +1,151 @@ | | | @@ -1,159 +1,151 @@ |
1 | .\" $NetBSD: quota.1,v 1.14.52.1 2011/01/20 14:25:05 bouyer Exp $ | | 1 | .\" $NetBSD: quota.1,v 1.14.52.2 2011/01/21 16:36:57 bouyer Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1983, 1990, 1993 | | 3 | .\" Copyright (c) 1983, 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to Berkeley by | | 6 | .\" This code is derived from software contributed to Berkeley by |
7 | .\" Robert Elz at The University of Melbourne. | | 7 | .\" Robert Elz at The University of Melbourne. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
15 | .\" notice, this list of conditions and the following disclaimer in the | | 15 | .\" notice, this list of conditions and the following disclaimer in the |
16 | .\" documentation and/or other materials provided with the distribution. | | 16 | .\" documentation and/or other materials provided with the distribution. |
17 | .\" 3. Neither the name of the University nor the names of its contributors | | 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 | | 18 | .\" may be used to endorse or promote products derived from this software |
19 | .\" without specific prior written permission. | | 19 | .\" without specific prior written permission. |
20 | .\" | | 20 | .\" |
21 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | 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 | | 22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 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 | | 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 | | 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 | | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | .\" SUCH DAMAGE. | | 31 | .\" SUCH DAMAGE. |
32 | .\" | | 32 | .\" |
33 | .\" from: @(#)quota.1 8.1 (Berkeley) 6/6/93 | | 33 | .\" from: @(#)quota.1 8.1 (Berkeley) 6/6/93 |
34 | .\" | | 34 | .\" |
35 | .Dd June 6, 1993 | | 35 | .Dd June 6, 1993 |
36 | .Dt QUOTA 1 | | 36 | .Dt QUOTA 1 |
37 | .Os | | 37 | .Os |
38 | .Sh NAME | | 38 | .Sh NAME |
39 | .Nm quota | | 39 | .Nm quota |
40 | .Nd display disk usage and limits | | 40 | .Nd display disk usage and limits |
41 | .Sh SYNOPSIS | | 41 | .Sh SYNOPSIS |
42 | .Nm | | 42 | .Nm |
43 | .Op Fl D | | 43 | .Op Fl D |
44 | .Op Fl h | | 44 | .Op Fl h |
45 | .Op Fl g | | 45 | .Op Fl g |
46 | .Op Fl u | | 46 | .Op Fl u |
47 | .Op Fl v | Fl q | | 47 | .Op Fl v | Fl q |
48 | .Nm | | 48 | .Nm |
49 | .Op Fl D | | 49 | .Op Fl D |
50 | .Op Fl h | | 50 | .Op Fl h |
51 | .Op Fl u | | 51 | .Op Fl u |
52 | .Op Fl v | Fl q | | 52 | .Op Fl v | Fl q |
53 | .Ar user | | 53 | .Ar user |
54 | .Nm | | 54 | .Nm |
55 | .Op Fl D | | 55 | .Op Fl D |
56 | .Op Fl h | | 56 | .Op Fl h |
57 | .Op Fl g | | 57 | .Op Fl g |
58 | .Op Fl v | Fl q | | 58 | .Op Fl v | Fl q |
59 | .Ar group | | 59 | .Ar group |
60 | .Nm | | 60 | .Nm |
61 | .Fl d | | 61 | .Fl d |
62 | .Op Fl D | | 62 | .Op Fl D |
63 | .Op Fl h | | 63 | .Op Fl h |
64 | .Op Fl g | | 64 | .Op Fl g |
65 | .Op Fl v | Fl q | | 65 | .Op Fl v | Fl q |
66 | .Sh DESCRIPTION | | 66 | .Sh DESCRIPTION |
67 | .Nm | | 67 | .Nm |
68 | displays users' disk usage and limits. | | 68 | displays users' disk usage and limits. |
69 | By default only the user quotas are printed. | | 69 | By default only the user quotas are printed. |
70 | .Pp | | 70 | .Pp |
71 | Options: | | 71 | Options: |
72 | .Pp | | 72 | .Pp |
73 | .Bl -tag -width Ds | | 73 | .Bl -tag -width Ds |
74 | .It Fl h | | 74 | .It Fl h |
75 | Numbers are displayed in a human readable format. | | 75 | Numbers are displayed in a human readable format. |
76 | .It Fl g | | 76 | .It Fl g |
77 | Print group quotas for the group | | 77 | Print group quotas for the group |
78 | of which the user is a member. | | 78 | of which the user is a member. |
79 | The optional | | 79 | The optional |
80 | .Fl u | | 80 | .Fl u |
81 | flag is equivalent to the default. | | 81 | flag is equivalent to the default. |
82 | .It Fl v | | 82 | .It Fl v |
83 | .Nm | | 83 | .Nm |
84 | will display quotas on filesystems | | 84 | will display quotas on filesystems |
85 | where no storage is allocated. | | 85 | where no storage is allocated. |
86 | .It Fl q | | 86 | .It Fl q |
87 | Print a more terse message, | | 87 | Print a more terse message, |
88 | containing only information | | 88 | containing only information |
89 | on filesystems where usage is over quota. | | 89 | on filesystems where usage is over quota. |
90 | .It Fl d | | 90 | .It Fl d |
91 | Query the kernel for default user or group quota instead of a specific | | 91 | Query the kernel for default user or group quota instead of a specific |
92 | user or group | | 92 | user or group |
93 | .It Fl D | | 93 | .It Fl D |
94 | Debug: print plist sent to and received from kernel. | | 94 | Debug: print plist sent to and received from kernel. |
95 | .El | | 95 | .El |
96 | .Pp | | 96 | .Pp |
97 | Specifying both | | 97 | Specifying both |
98 | .Fl g | | 98 | .Fl g |
99 | and | | 99 | and |
100 | .Fl u | | 100 | .Fl u |
101 | displays both the user quotas and the group quotas (for | | 101 | displays both the user quotas and the group quotas (for |
102 | the user). | | 102 | the user). |
103 | .Pp | | 103 | .Pp |
104 | Only the super-user may use the | | 104 | Only the super-user may use the |
105 | .Fl u | | 105 | .Fl u |
106 | flag and the optional | | 106 | flag and the optional |
107 | .Ar user | | 107 | .Ar user |
108 | argument to view the limits of other users. | | 108 | argument to view the limits of other users. |
109 | Non-super-users can use the | | 109 | Non-super-users can use the |
110 | .Fl g | | 110 | .Fl g |
111 | flag and optional | | 111 | flag and optional |
112 | .Ar group | | 112 | .Ar group |
113 | argument to view only the limits of groups of which they are members. | | 113 | argument to view only the limits of groups of which they are members. |
114 | .Pp | | 114 | .Pp |
115 | Only the super-user may use the | | 115 | Only the super-user may use the |
116 | .Fl d | | 116 | .Fl d |
117 | flag. | | 117 | flag. |
118 | .Pp | | 118 | .Pp |
119 | The | | 119 | The |
120 | .Fl q | | 120 | .Fl q |
121 | flag takes precedence over the | | 121 | flag takes precedence over the |
122 | .Fl v | | 122 | .Fl v |
123 | flag. | | 123 | flag. |
124 | .Pp | | 124 | .Pp |
125 | .Nm | | 125 | .Nm |
126 | tries to report the quotas of all mounted filesystems. | | 126 | tries to report the quotas of all mounted filesystems. |
127 | If the filesystem is mounted via | | 127 | If the filesystem is mounted via |
128 | .Em NFS | | 128 | .Em NFS |
129 | it will attempt to contact the | | 129 | it will attempt to contact the |
130 | .Xr rpc.rquotad 8 | | 130 | .Xr rpc.rquotad 8 |
131 | daemon on the | | 131 | daemon on the |
132 | .Em NFS | | 132 | .Em NFS |
133 | server. | | 133 | server. |
134 | If | | 134 | If |
135 | .Nm | | 135 | .Nm |
136 | exits with a non-zero status, one or more filesystems | | 136 | exits with a non-zero status, one or more filesystems |
137 | are over quota. | | 137 | are over quota. |
138 | .Sh FILES | | | |
139 | .Bl -tag -width quota.group -compact | | | |
140 | .It Pa quota.user | | | |
141 | located at the filesystem root with user quotas | | | |
142 | .It Pa quota.group | | | |
143 | located at the filesystem root with group quotas | | | |
144 | .It Pa /etc/fstab | | | |
145 | to find filesystem names and locations | | | |
146 | .El | | 138 | .El |
147 | .Sh SEE ALSO | | 139 | .Sh SEE ALSO |
148 | .Xr quotactl 2 , | | 140 | .Xr quotactl 2 , |
149 | .Xr fstab 5 , | | 141 | .Xr fstab 5 , |
150 | .Xr edquota 8 , | | 142 | .Xr edquota 8 , |
151 | .Xr quotacheck 8 , | | 143 | .Xr quotacheck 8 , |
152 | .Xr quotaon 8 , | | 144 | .Xr quotaon 8 , |
153 | .Xr repquota 8 , | | 145 | .Xr repquota 8 , |
154 | .Xr rpc.rquotad 8 | | 146 | .Xr rpc.rquotad 8 |
155 | .Sh HISTORY | | 147 | .Sh HISTORY |
156 | The | | 148 | The |
157 | .Nm | | 149 | .Nm |
158 | command appeared in | | 150 | command appeared in |
159 | .Bx 4.2 . | | 151 | .Bx 4.2 . |