xref: /openbsd/usr.sbin/quot/quot.8 (revision 09467b48)
1.\"	$OpenBSD: quot.8,v 1.14 2017/09/05 15:09:06 schwarze Exp $
2.\"
3.\" Copyright (C) 1994 Wolfgang Solfrank.
4.\" Copyright (C) 1994 TooLs GmbH.
5.\" All rights reserved.
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.\" 3. All advertising materials mentioning features or use of this software
16.\"    must display the following acknowledgement:
17.\"	This product includes software developed by TooLs GmbH.
18.\" 4. The name of TooLs GmbH may not be used to endorse or promote products
19.\"    derived from this software without specific prior written permission.
20.\"
21.\" THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
22.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24.\" IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31.\"
32.Dd $Mdocdate: September 5 2017 $
33.Dt QUOT 8
34.Os
35.Sh NAME
36.Nm quot
37.Nd display disk space occupied by each user
38.Sh SYNOPSIS
39.Nm quot
40.Op Fl acfhknv
41.Op Ar filesystem ...
42.Sh DESCRIPTION
43.Nm
44is used to gather statistics about the disk usage for each local user.
45.Pp
46The options are as follows:
47.Bl -tag -width Ds
48.It Fl a
49Include statistics for all mounted filesystems.
50.It Fl c
51Display three columns containing number of blocks per file,
52number of files in this category, and aggregate total of
53blocks in files with this or lower size.
54.It Fl f
55For each user, display count of files and space occupied.
56.It Fl h
57Estimate the number of blocks in each file based on its size.
58Despite that this doesn't give the correct results (it doesn't
59account for the holes in files), this option isn't any faster
60and thus is discouraged.
61.It Fl k
62By default, all sizes are reported in 512-byte block counts.
63The
64.Fl k
65options causes the numbers to be reported in kilobyte counts.
66.It Fl n
67Given a list of inodes (plus some optional data on each line)
68in the standard input, for each file print out the owner (plus
69the remainder of the input line).
70This is traditionally used in the pipe:
71.Bd -literal -offset indent
72# ncheck filesystem | sort -n | quot -n filesystem
73.Ed
74.Pp
75to get a report of files and their owners.
76.It Fl v
77In addition to the default output, display the number of files
78not accessed within 30, 60 and 90 days.
79.El
80.Sh ENVIRONMENT
81.Bl -tag -width BLOCKSIZE
82.It Ev BLOCKSIZE
83If the environment variable
84.Ev BLOCKSIZE
85is set, and the
86.Fl k
87option is not specified, the block counts will be displayed in units of that
88size block.
89.El
90.\".Sh BUGS
91.Sh SEE ALSO
92.Xr df 1 ,
93.Xr quota 1 ,
94.Xr getmntinfo 3 ,
95.Xr fstab 5 ,
96.Xr mount 8
97.Sh HISTORY
98The
99.Nm
100utility first appeared in
101.At v7 .
102.Sh AUTHORS
103The current version was written by
104.An Wolfgang Solfrank Aq Mt ws@netbsd.org
105for
106.Nx 1.0 .
107