/usr.bin/quota/quota.1

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 176 lines · 176 code · 0 blank · 0 comment · 0 complexity · 0e3aa550723883d56a1f5324f256905e MD5 · raw file

  1. .\" Copyright (c) 1983, 1990, 1993
  2. .\" The Regents of the University of California. All rights reserved.
  3. .\"
  4. .\" This code is derived from software contributed to Berkeley by
  5. .\" Robert Elz at The University of Melbourne.
  6. .\"
  7. .\" Redistribution and use in source and binary forms, with or without
  8. .\" modification, are permitted provided that the following conditions
  9. .\" are met:
  10. .\" 1. Redistributions of source code must retain the above copyright
  11. .\" notice, this list of conditions and the following disclaimer.
  12. .\" 2. Redistributions in binary form must reproduce the above copyright
  13. .\" notice, this list of conditions and the following disclaimer in the
  14. .\" documentation and/or other materials provided with the distribution.
  15. .\" 4. Neither the name of the University nor the names of its contributors
  16. .\" may be used to endorse or promote products derived from this software
  17. .\" without specific prior written permission.
  18. .\"
  19. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  20. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  23. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  25. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  26. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  27. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  28. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  29. .\" SUCH DAMAGE.
  30. .\"
  31. .\" from: @(#)quota.1 8.1 (Berkeley) 6/6/93
  32. .\" $FreeBSD$
  33. .\"
  34. .Dd February 3, 2007
  35. .Dt QUOTA 1
  36. .Os
  37. .Sh NAME
  38. .Nm quota
  39. .Nd display disk usage and limits
  40. .Sh SYNOPSIS
  41. .Nm
  42. .Op Fl ghlu
  43. .Op Fl f Ar path
  44. .Op Fl v | q | r
  45. .Nm
  46. .Op Fl hlu
  47. .Op Fl f Ar path
  48. .Op Fl v | q | r
  49. .Ar user ...
  50. .Nm
  51. .Fl g
  52. .Op Fl hl
  53. .Op Fl f Ar path
  54. .Op Fl v | q | r
  55. .Ar group ...
  56. .Sh DESCRIPTION
  57. The
  58. .Nm
  59. utility displays users' disk usage and limits.
  60. By default only the user quotas are printed.
  61. Disk block usage and limits are shown in 1024-byte blocks.
  62. .Pp
  63. The following options are available:
  64. .Bl -tag -width indent
  65. .It Fl f Ar path
  66. Only display quota information for the file system
  67. that contains the specified path.
  68. This can be any file within a mounted file system.
  69. .It Fl g
  70. Print group quotas for the group
  71. of which the user is a member.
  72. .It Fl h
  73. "Human-readable" output.
  74. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
  75. .It Fl l
  76. Do not report quotas on
  77. .Tn NFS
  78. file systems.
  79. .It Fl q
  80. Print a more terse message,
  81. containing only information
  82. on file systems where usage is over quota.
  83. The
  84. .Fl q
  85. flag takes precedence over the
  86. .Fl v
  87. flag.
  88. .It Fl r
  89. Display the raw quota information as it appears in the quota structure.
  90. Non-zero time values will also be displayed in
  91. .Xr ctime 3
  92. format.
  93. This option implies
  94. .Fl v
  95. and will override the
  96. .Fl q
  97. flag.
  98. .It Fl u
  99. Print the user quotas.
  100. This is the default unless
  101. .Fl g
  102. is specified.
  103. .It Fl v
  104. Display quotas on file systems
  105. where no storage is allocated.
  106. .El
  107. .Pp
  108. Specifying both
  109. .Fl g
  110. and
  111. .Fl u
  112. displays both the user quotas and the group quotas (for
  113. the user).
  114. .Pp
  115. Only the super-user may use the
  116. .Fl u
  117. flag and the optional
  118. .Ar user
  119. argument to view the limits of other users.
  120. Non-super-users can use the
  121. .Fl g
  122. flag and optional
  123. .Ar group
  124. argument to view only the limits of groups of which they are members.
  125. .Pp
  126. The
  127. .Nm
  128. utility tries to report the quotas of all mounted file systems.
  129. If the file system is mounted via
  130. .Tn NFS ,
  131. it will attempt to contact the
  132. .Xr rpc.rquotad 8
  133. daemon on the
  134. .Tn NFS
  135. server.
  136. For
  137. .Tn UFS
  138. file systems, quotas must be turned on in
  139. .Pa /etc/fstab .
  140. If
  141. .Nm
  142. exits with a non-zero status, one or more file systems
  143. are over quota or the path specified with the
  144. .Fl f
  145. option does not exist.
  146. .Pp
  147. If the
  148. .Fl l
  149. flag is specified,
  150. .Nm
  151. will not check
  152. .Tn NFS
  153. file systems.
  154. .Sh FILES
  155. .Bl -tag -width quota.group -compact
  156. .It Pa quota.user
  157. located at the file system root with user quotas
  158. .It Pa quota.group
  159. located at the file system root with group quotas
  160. .It Pa /etc/fstab
  161. to find file system names and locations
  162. .El
  163. .Sh SEE ALSO
  164. .Xr quotactl 2 ,
  165. .Xr ctime 3 ,
  166. .Xr fstab 5 ,
  167. .Xr edquota 8 ,
  168. .Xr quotacheck 8 ,
  169. .Xr quotaon 8 ,
  170. .Xr repquota 8 ,
  171. .Xr rpc.rquotad 8
  172. .Sh HISTORY
  173. The
  174. .Nm
  175. command appeared in
  176. .Bx 4.2 .