source: trunk/athena/bin/quota/quota.1 @ 9810

Revision 9810, 5.7 KB checked in by ghudson, 27 years ago (diff)
Move attachtab to /var/athena.
Line 
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
5quota \- 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
12displays users' and groups' disk usage and limits on local and NFS
13mounted file systems, as well as AFS lockers that have been attached.  If a
14user or group is specified (by name or by
15id), \fIquota\fP will return information on disk usage and limits for
16the 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
19those filesystems that the user has attached and to which the user has
20write access at the filesystem's top-level directory.  Without any
21options, \fIquota\fP displays warnings about those filesystems where
22usage is over quota.  With AFS filesystems, warnings are displayed when
2390% of the volume's quota has been reached.
24
25.SH OPTIONS
26
27.IP \fB\-a\fP
28This option specifies that all attached filesystems should be processed,
29irregardless of who attached them and the user's ability to write to the
30filesystem.  Warnings or status messages that may result by the use of
31this option do not necessarily indicate that the user may be able to
32alter the usage or otherwise affect the situation.  Quota information is
33a representation of a user's limits should he have write access; it does
34not indicate that such write access exists.
35
36.IP \fB\-v\fP
37This option will display
38usages and limits for the user and any groups the user is a member of
39on all processed file systems where quotas exist, in the following
40format:
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
46Disk quotas for joeuser (uid 12345):
47Filesystem      Type    ID      usage   quota   limit   files   quota   limit
48/mit/joeuser    user    joeuser  2394    2000    2400<<   313    1000    1200
49
50User joeuser over disk quota on /mit/joeuser, remove 395K within 7.0 days
51.ta .5in
52.if n .in +.755i
53.fi
54
55On NFS or local file systems, everyone has a "soft" limit for disk space
56usage (given in the first
57.B quota
58column) and a
59"hard" limit (given in the first
60.B limit
61column).  The amount of space
62currently in use is shown in the
63.B usage
64column.  These values
65are measured in kilobytes (1024 characters).
66
67When the "soft" limit is exceeded, the
68.B limit
69column 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
71into the directory.  Also, if you wait until the seven days time limit
72runs out, then writing will not be allowed until usage has been reduced
73below the soft limit, at which time the seven day timer is turned off
74and reset.
75
76In addition, there is a quota and limit on the number of inodes (files and
77directories) 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
80column).  The soft and hard
81limits for inodes are similar to those for disk space usage, except that when
82the "hard" limit is reached, you will not be able to create new subdirectories
83or files within that filesystem.
84
85If no quotas for the user (or groups that the user is a member of) exist
86on any mounted file systems, nothing will be displayed.
87
88In an AFS locker, there is no quota on the number of files you can
89create as long as your disk usage remains under quota.
90
91.IP \fB\-f\fP filesystem
92With this option, quota information will be returned on any specified
93filesystems.  The filesystem must be specified as the mount-point or as
94the Hesiod name by which it was attached.  A single filesystem name
95must be present with each \fB\-f\fP option.  For example, a typical
96command to check one's home directory quota would be:
97.nf
98.ta .3i
99
100        quota -v -f\  ~
101.fi
102
103Up to 16 `\fB\-f\fP filesystem' pairs may be specified.  If the given
104filesystem name doesn't match any mounted filesystems, a suitable
105error message to that effect is printed.
106
107Note that the user will always be warned about quota problems on lockers
108that are explicitly specified with -f, whether or not they have write
109access to the filesystem.  Quota is a representation of limits that the
110user would have should he have write access; it does not indicate if
111such write access exists.
112
113.IP \fB\-u\fP
114This option will only report user quota information (ie. no group quotas),
115in 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
121Disk quotas for user joeuser (uid 12345):
122Filesystem      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
127Similar to the \fB-u\fP option, but reports only group quota information.  At
128least one group must be specified on the command line.
129.SH PERMISSIONS
130Normal users can only check their own user quotas and the quotas of any
131group they're a member of. \fIquota -v\fP will return all such quotas on
132all mounted filesystems.
133
134The super-user may check any user or group quota on local (non-NFS)
135filesystems.  The super-user can also get quota information for users
136on NFS filesystems when (1) the NFS fileserver is running the newer
137Athena RPC daemon and (2) the user in question has an NFS mapping on
138the server.  To get quota information on NFS filesystems for a
139specific group, the super-user must have a mapping on the NFS server
140to 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/var/athena/attachtab\fP     list of attached filesystems
147.fi
148.DT
149.SH "SEE ALSO"
150quotactl(2), quotaon(8), edquota(8), rquotad(8c), fs
Note: See TracBrowser for help on using the repository browser.