1*785e7327Sschwarze.\" $OpenBSD: quot.8,v 1.14 2017/09/05 15:09:06 schwarze Exp $ 25537c23bSschwarze.\" 3df930be7Sderaadt.\" Copyright (C) 1994 Wolfgang Solfrank. 4df930be7Sderaadt.\" Copyright (C) 1994 TooLs GmbH. 5df930be7Sderaadt.\" All rights reserved. 6df930be7Sderaadt.\" 7df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 8df930be7Sderaadt.\" modification, are permitted provided that the following conditions 9df930be7Sderaadt.\" are met: 10df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 11df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 12df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 13df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 14df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 15df930be7Sderaadt.\" 3. All advertising materials mentioning features or use of this software 16df930be7Sderaadt.\" must display the following acknowledgement: 17df930be7Sderaadt.\" This product includes software developed by TooLs GmbH. 18df930be7Sderaadt.\" 4. The name of TooLs GmbH may not be used to endorse or promote products 19df930be7Sderaadt.\" derived from this software without specific prior written permission. 20df930be7Sderaadt.\" 21df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 22df930be7Sderaadt.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23df930be7Sderaadt.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24df930be7Sderaadt.\" IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25df930be7Sderaadt.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26df930be7Sderaadt.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 27df930be7Sderaadt.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 28df930be7Sderaadt.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 29df930be7Sderaadt.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 30df930be7Sderaadt.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31df930be7Sderaadt.\" 32*785e7327Sschwarze.Dd $Mdocdate: September 5 2017 $ 33df930be7Sderaadt.Dt QUOT 8 34fc8533a3Saaron.Os 35df930be7Sderaadt.Sh NAME 36df930be7Sderaadt.Nm quot 37df930be7Sderaadt.Nd display disk space occupied by each user 38df930be7Sderaadt.Sh SYNOPSIS 3943399070Saaron.Nm quot 40df930be7Sderaadt.Op Fl acfhknv 41df930be7Sderaadt.Op Ar filesystem ... 42df930be7Sderaadt.Sh DESCRIPTION 431c499c0bSaaron.Nm 44df930be7Sderaadtis used to gather statistics about the disk usage for each local user. 45df930be7Sderaadt.Pp 461c499c0bSaaronThe options are as follows: 47df930be7Sderaadt.Bl -tag -width Ds 48df930be7Sderaadt.It Fl a 49df930be7SderaadtInclude statistics for all mounted filesystems. 50df930be7Sderaadt.It Fl c 51df930be7SderaadtDisplay three columns containing number of blocks per file, 52df930be7Sderaadtnumber of files in this category, and aggregate total of 53df930be7Sderaadtblocks in files with this or lower size. 54df930be7Sderaadt.It Fl f 55df930be7SderaadtFor each user, display count of files and space occupied. 56df930be7Sderaadt.It Fl h 57df930be7SderaadtEstimate the number of blocks in each file based on its size. 58f7de5c7bSalexDespite that this doesn't give the correct results (it doesn't 59df930be7Sderaadtaccount for the holes in files), this option isn't any faster 60df930be7Sderaadtand thus is discouraged. 61df930be7Sderaadt.It Fl k 62df930be7SderaadtBy default, all sizes are reported in 512-byte block counts. 63df930be7SderaadtThe 64df930be7Sderaadt.Fl k 65df930be7Sderaadtoptions causes the numbers to be reported in kilobyte counts. 66df930be7Sderaadt.It Fl n 67df930be7SderaadtGiven a list of inodes (plus some optional data on each line) 68df930be7Sderaadtin the standard input, for each file print out the owner (plus 69cdbdb68aSaaronthe remainder of the input line). 70cdbdb68aSaaronThis is traditionally used in the pipe: 71df930be7Sderaadt.Bd -literal -offset indent 72f37db7a3Sjca# ncheck filesystem | sort -n | quot -n filesystem 73df930be7Sderaadt.Ed 74df930be7Sderaadt.Pp 75df930be7Sderaadtto get a report of files and their owners. 76df930be7Sderaadt.It Fl v 77df930be7SderaadtIn addition to the default output, display the number of files 78df930be7Sderaadtnot accessed within 30, 60 and 90 days. 79df930be7Sderaadt.El 8041371632Sderaadt.Sh ENVIRONMENT 81df930be7Sderaadt.Bl -tag -width BLOCKSIZE 82df930be7Sderaadt.It Ev BLOCKSIZE 833b83c268SderaadtIf the environment variable 84df930be7Sderaadt.Ev BLOCKSIZE 85df930be7Sderaadtis set, and the 861c499c0bSaaron.Fl k 87df930be7Sderaadtoption is not specified, the block counts will be displayed in units of that 88df930be7Sderaadtsize block. 89df930be7Sderaadt.El 90df930be7Sderaadt.\".Sh BUGS 91df930be7Sderaadt.Sh SEE ALSO 92df930be7Sderaadt.Xr df 1 , 93df930be7Sderaadt.Xr quota 1 , 94df930be7Sderaadt.Xr getmntinfo 3 , 95df930be7Sderaadt.Xr fstab 5 , 962410810fSderaadt.Xr mount 8 97*785e7327Sschwarze.Sh HISTORY 98*785e7327SschwarzeThe 99*785e7327Sschwarze.Nm 100*785e7327Sschwarzeutility first appeared in 101*785e7327Sschwarze.At v7 . 102*785e7327Sschwarze.Sh AUTHORS 103*785e7327SschwarzeThe current version was written by 104*785e7327Sschwarze.An Wolfgang Solfrank Aq Mt ws@netbsd.org 105*785e7327Sschwarzefor 106*785e7327Sschwarze.Nx 1.0 . 107