1 | .\" @(#)quota.1 1.1 85/12/28 SMI; from UCB 4.2 |
---|
2 | .TH QUOTA 1 "25 Jun 1991" |
---|
3 | .UC 4 |
---|
4 | .SH NAME |
---|
5 | quota \- display disk usage and limits |
---|
6 | .SH SYNOPSIS |
---|
7 | \fBquota\fP [\fB\-v\fP] [\fB\-a\fP|\fB\-f\fP filesystem [\fB\-f\fP filesystem ...] ] [\fB\-u\fP] [user] [user] ... |
---|
8 | |
---|
9 | \fBquota\fP [\fB\-v\fP] [\fB\-a\fP|\fB\-f\fP filesystem [\fB\-f\fP filesystem ...] ] \fB\-g\fP group [group] ... |
---|
10 | .SH DESCRIPTION |
---|
11 | .I Quota |
---|
12 | displays users' and groups' disk usage and limits on local and NFS |
---|
13 | mounted file systems, as well as AFS lockers that have been attached. If a |
---|
14 | user or group is specified (by name or by |
---|
15 | id), \fIquota\fP will return information on disk usage and limits for |
---|
16 | the given user or group (See \fBPERMISSIONS\fP below). |
---|
17 | .LP |
---|
18 | \fIQuota\fP, without the \fB\-a\fP or \fB\-f\fP options, only processes |
---|
19 | those filesystems that the user has attached and to which the user has |
---|
20 | write access at the filesystem's top-level directory. Without any |
---|
21 | options, \fIquota\fP displays warnings about those filesystems where |
---|
22 | usage is over quota. With AFS filesystems, warnings are displayed when |
---|
23 | 90% of the volume's quota has been reached. |
---|
24 | |
---|
25 | .SH OPTIONS |
---|
26 | |
---|
27 | .IP \fB\-a\fP |
---|
28 | This option specifies that all attached filesystems should be processed, |
---|
29 | irregardless of who attached them and the user's ability to write to the |
---|
30 | filesystem. Warnings or status messages that may result by the use of |
---|
31 | this option do not necessarily indicate that the user may be able to |
---|
32 | alter the usage or otherwise affect the situation. Quota information is |
---|
33 | a representation of a user's limits should he have write access; it does |
---|
34 | not indicate that such write access exists. |
---|
35 | |
---|
36 | .IP \fB\-v\fP |
---|
37 | This option will display |
---|
38 | usages and limits for the user and any groups the user is a member of |
---|
39 | on all processed file systems where quotas exist, in the following |
---|
40 | format: |
---|
41 | |
---|
42 | .nf |
---|
43 | .if n .in -.75in |
---|
44 | .if n .ta 1.3i 2.0i 2.8i 3.5i 4.5i 5.2i 5.9i 6.6i |
---|
45 | .if t .ta .9i 1.4i 2.1i 2.7i 3.4i 4.2i 4.6i 5.2i |
---|
46 | Disk quotas for joeuser (uid 12345): |
---|
47 | Filesystem Type ID usage quota limit files quota limit |
---|
48 | /mit/joeuser user joeuser 2394 2000 2400<< 313 1000 1200 |
---|
49 | |
---|
50 | User joeuser over disk quota on /mit/joeuser, remove 395K within 7.0 days |
---|
51 | .ta .5in |
---|
52 | .if n .in +.755i |
---|
53 | .fi |
---|
54 | |
---|
55 | On NFS or local file systems, everyone has a "soft" limit for disk space |
---|
56 | usage (given in the first |
---|
57 | .B quota |
---|
58 | column) and a |
---|
59 | "hard" limit (given in the first |
---|
60 | .B limit |
---|
61 | column). The amount of space |
---|
62 | currently in use is shown in the |
---|
63 | .B usage |
---|
64 | column. These values |
---|
65 | are measured in kilobytes (1024 characters). |
---|
66 | |
---|
67 | When the "soft" limit is exceeded, the |
---|
68 | .B limit |
---|
69 | column will be marked with \fB<<\fP, as shown above. If the higher |
---|
70 | "hard" limit is reached, you will no longer be able to write anything |
---|
71 | into the directory. Also, if you wait until the seven days time limit |
---|
72 | runs out, then writing will not be allowed until usage has been reduced |
---|
73 | below the soft limit, at which time the seven day timer is turned off |
---|
74 | and reset. |
---|
75 | |
---|
76 | In addition, there is a quota and limit on the number of inodes (files and |
---|
77 | directories) that may exist. Each file or directory counts as a single inode |
---|
78 | (the sum total of which is listed in the |
---|
79 | .B files |
---|
80 | column). The soft and hard |
---|
81 | limits for inodes are similar to those for disk space usage, except that when |
---|
82 | the "hard" limit is reached, you will not be able to create new subdirectories |
---|
83 | or files within that filesystem. |
---|
84 | |
---|
85 | If no quotas for the user (or groups that the user is a member of) exist |
---|
86 | on any mounted file systems, nothing will be displayed. |
---|
87 | |
---|
88 | In an AFS locker, there is no quota on the number of files you can |
---|
89 | create as long as your disk usage remains under quota. |
---|
90 | |
---|
91 | .IP \fB\-f\fP filesystem |
---|
92 | With this option, quota information will be returned on any specified |
---|
93 | filesystems. The filesystem must be specified as the mount-point or as |
---|
94 | the Hesiod name by which it was attached. A single filesystem name |
---|
95 | must be present with each \fB\-f\fP option. For example, a typical |
---|
96 | command to check one's home directory quota would be: |
---|
97 | .nf |
---|
98 | .ta .3i |
---|
99 | |
---|
100 | quota -v -f\ ~ |
---|
101 | .fi |
---|
102 | |
---|
103 | Up to 16 `\fB\-f\fP filesystem' pairs may be specified. If the given |
---|
104 | filesystem name doesn't match any mounted filesystems, a suitable |
---|
105 | error message to that effect is printed. |
---|
106 | |
---|
107 | Note that the user will always be warned about quota problems on lockers |
---|
108 | that are explicitly specified with -f, whether or not they have write |
---|
109 | access to the filesystem. Quota is a representation of limits that the |
---|
110 | user would have should he have write access; it does not indicate if |
---|
111 | such write access exists. |
---|
112 | |
---|
113 | .IP \fB\-u\fP |
---|
114 | This option will only report user quota information (ie. no group quotas), |
---|
115 | in the following format: |
---|
116 | |
---|
117 | .nf |
---|
118 | .if n .in -.75in |
---|
119 | .if n .ta 1.3i 2.0i 2.7i 3.5i 4.5i 5.2i 5.9i 6.6i |
---|
120 | .if t .ta .9i 1.4i 2.1i 2.7i 3.4i 4.2i 4.6i 5.2i |
---|
121 | Disk quotas for user joeuser (uid 12345): |
---|
122 | Filesystem usage quota limit timeleft files quota limit timeleft |
---|
123 | /mit/joeuser 2394 2000 2400 7.0 days 313 1000 1200 |
---|
124 | .if n .in +.755i |
---|
125 | .fi |
---|
126 | .IP \fB\-g\fP |
---|
127 | Similar to the \fB-u\fP option, but reports only group quota information. At |
---|
128 | least one group must be specified on the command line. |
---|
129 | .SH PERMISSIONS |
---|
130 | Normal users can only check their own user quotas and the quotas of any |
---|
131 | group they're a member of. \fIquota -v\fP will return all such quotas on |
---|
132 | all mounted filesystems. |
---|
133 | |
---|
134 | The super-user may check any user or group quota on local (non-NFS) |
---|
135 | filesystems. The super-user can also get quota information for users |
---|
136 | on NFS filesystems when (1) the NFS fileserver is running the newer |
---|
137 | Athena RPC daemon and (2) the user in question has an NFS mapping on |
---|
138 | the server. To get quota information on NFS filesystems for a |
---|
139 | specific group, the super-user must have a mapping on the NFS server |
---|
140 | to any user who is in the specified group. |
---|
141 | .SH FILES |
---|
142 | .nf |
---|
143 | .ta 2i |
---|
144 | \fIquotas\fP quota file at the file system root |
---|
145 | \fI/etc/qotab\fP quota options file |
---|
146 | \fI/usr/tmp/attachtab\fP list of attached filesystems |
---|
147 | .fi |
---|
148 | .DT |
---|
149 | .SH "SEE ALSO" |
---|
150 | quotactl(2), quotaon(8), edquota(8), rquotad(8c), fs |
---|