 |
Index for Section 8 |
|
 |
Alphabetical listing for Q |
|
quot(8)
NAME
quot - summarizes file system ownership
SYNOPSIS
/usr/sbin/quot [-cfhnv] [file_spec ...]
/usr/sbin/quot [-g] [group]
PARAMETERS
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/rrz3c.
To specify a UFS that is not mounted, enter the name of its block
device special file. For example: /dev/rz3c.
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.
group
Specifies a group name.
FLAGS
-c Displays three columns giving file size in blocks, the number of files
of that size, and cumulative total of blocks in a file of that size or
smaller. Note that disk quotas are displayed in 1 kilobyte blocks.
-f Displays amount of space used and a count of number of files owned by
each user.
-g Displays group quotas for groups of which you are a member, in addition
to your user quotas, when specified without the group parameter.
Displays group quotas for group when you specify group.
-h For UFS, this option displays the number of blocks used by each user.
For AdvFS, the option is not implemented.
-n Displays a list of all files and their owners by performing the
following pipeline:
ncheck filesystem | sort +0n | quot -n filesystem
-v Displays quota information for all mounted file systems, regardless of
whether the user has any files in a given file system or whether quotas
are enabled on a file system.
DESCRIPTION
The quot command displays the number of blocks in the file system that are
currently owned by each user. 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/rrz1a
character device special file name:
# quot -f /dev/rrz1a
/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
FILES
/usr/sbin/quot
Command path
/etc/passwd
Contains user information
/etc/fstab
Lists file systems
RELATED INFORMATION
ls(1), du(1).