1.\" Copyright (C) 1994 Wolfgang Solfrank. 2.\" Copyright (C) 1994 TooLs GmbH. 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. All advertising materials mentioning features or use of this software 14.\" must display the following acknowledgement: 15.\" This product includes software developed by TooLs GmbH. 16.\" 4. The name of TooLs GmbH may not be used to endorse or promote products 17.\" derived from this software without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 20.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 25.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 27.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 28.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.\" $FreeBSD$ 31.\" 32.Dd February 8, 1994 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 40.Op Fl acfhknv 41.Op Ar filesystem ... 42.Sh DESCRIPTION 43.Nm Quot 44is used to gather statistics about the disk usage for each local user. 45.Pp 46The following options are available: 47.Bl -tag -width indent 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 62Cause the numbers to be reported in kilobyte counts. 63By default, all sizes are reported in 512-byte block counts. 64.It Fl n 65Given a list of inodes (plus some optional data on each line) 66in the standard input, for each file print out the owner (plus 67the remainder of the input line). This is traditionally used 68in the pipe: 69.Bd -literal -offset indent 70.\" ncheck filesystem | sort +0n | quot -n filesystem 71ls -i | sed -e 's,^ *,,' | sort +0n | quot -n filesystem 72.Ed 73.Pp 74to get a report of files and their owners. 75.It Fl v 76In addition to the default output, display the number of files 77not accessed within 30, 60 and 90 days. 78.El 79.Sh ENVIRONMENT 80.Bl -tag -width BLOCKSIZE 81.It Ev BLOCKSIZE 82If the environment variable 83.Ev BLOCKSIZE 84is set, and the 85.Fl k 86option is not specified, the block counts will be displayed in units of that 87size block. 88.El 89.Sh BUGS 90.Xr ncheck 91(which would be a lot more useful than 92.Nm ls Fl i 93in the example above) 94does not exist in 95.Fx . 96.Sh SEE ALSO 97.Xr df 1 , 98.Xr quota 1 , 99.Xr getmntinfo 3 , 100.Xr fstab 5 , 101.Xr mount 8 102.Sh HISTORY 103This implementation of 104.Nm 105is by 106.An Wolfgang Solfrank 107/ TooLs GmbH. 108