quot(8) — Maintenance
NAME
quot − Displays information about user files
SYNOPSIS
/usr/sbin/quot [−cfghnv] [file_spec...]
OPTIONS
−cDisplays three columns about user files: file size in 1024-byte disk blocks, number of files that are the size described in column one, and the cumulative total of 1024-byte disk blocks that are in files of the size or smaller described in column one.
−fDisplays three columns about user files: the space allocated for the user’s files in 1024-byte disk blocks, the number of files owned by the user, and the user name.
−gDisplays three columns about user files in different groups: the space allocated for the user files in 1024-byte disk blocks, the user name, and the user’s group.
−hDisplays two columns about user files: an estimate of the space allocated for the user files in 1024-byte disk blocks and the user name. The estimate does not include calculations for sparse files and therefore inaccurately represents them.
−nDisplays a list of all files and the user name of their owners. However, you must use the option in the following pipeline:
ncheck filesystem |sort +0n| quot -n filesystem
For example:
# ncheck /dev/rdisk/dsk0a|sort +0n|quot -n /dev/rdisk/dsk0a \
> quot.out
If you attempt to use the −n option by itself, the quot command hangs.
−vDisplays five columns about user files: the space allocated for the user files in 1024-byte disk blocks, the user name, and how many blocks there are in user files that have not been accessed in 30, 60, and 90 days.
OPERANDS
file_spec
Specifies one or more file systems. Specify a file system by entering its name as defined by its file_spec parameter in the /etc/fstab file. Otherwise, how you specify a file system depends on whether it is UFS or AdvFS and whether it is mounted.
To specify a UFS file system that is mounted, enter the name of its character device special file. For example: /dev/rdisk/dsk3c.
To specify a UFS that is not mounted, enter the name of its block device special file. For example: /dev/disk/dsk3c.
To specify an AdvFS fileset that is mounted, enter the name of the file domain, a pound-sign(#) character, and the name of the fileset. For example: root_domain#root.
You cannot specify an AdvFS fileset that is not mounted.
DESCRIPTION
The quot command displays information about each file system’s users and the files that they own. If you do not specify a file system, the quot command processes all file systems of type ro, rw, or rq that are listed in the /etc/fstab file.
NOTES
The term file system represents either a UFS file system or an AdvFS fileset.
RESTRICTION
You must be the root user to use the quot command.
For UFS file systems, the file_spec parameter must be the name of a device that can be opened for reading.
EXAMPLES
The following command displays the blocks used and the number of files owned by each user on the mounted file system specified by the /dev/rdisk/dsk1a character device special file name:
# quot -f /dev/rdisk/dsk1a
/dev/rrz1a:
42813 760 root
23882 543 bin
6 2 devbld
The following command displays the number of blocks owned by each user:
# quot staff_domain#usr
staff_domain#usr:
308522 bin
93881 smith
62270 root
4335 #553
3615 bold
24 daemon
15 steven
14 jones
14 walter
6 adm
3 north
The following command displays the aging of files in the test_domain#test fileset:
# quot -v test_domain#test
test_domain#test:
788912 jdoe 334932 299802 297186
1350 root 1318 1318 1310
13 nobody 13 13 0
#
The following command displays space allocation for the quot_all_fs1 fileset in the quot_all_dmn domain:
# quot -h quot_all_dmn#quot_all_fs1
quot_all_dmn#quot_all_fs1:
48 root
8 usr_grp
#
FILES
/usr/sbin/quot
Command path
/etc/passwd
Contains user information
/etc/fstab
Lists file systems