[ Next Article |
Previous Article |
Book Contents |
Library Home |
Legal |
Search ]
Commands Reference, Volume 4
quot Command
Purpose
Summarizes file system ownership.
quot [ -c ] [ -f ] [ -h ] [ -n ] [ FileSystem ... ]
Description
The quot command summarizes file system ownership by displaying the number of 512-byte blocks currently owned by each user in the specified file system (FileSystem). If no file system is specified, the quot command displays the same information for each of the file systems in the /etc/filesystems file.
Flags
-c |
Displays a 3-column report. The first column specifies the file size in 512-byte blocks. The second column specifies the number of files of that size. Finally, the third column specifies the cumulative total of 512-byte blocks in all files of that size or smaller.
Note: Files greater than or equal to 500 blocks are grouped under a block size of 499. However, their exact block count contributes to the cumulative total of blocks.
|
-f |
Displays the total number of blocks, the total number of files, and the user name associated with these totals. |
-h |
Estimates the number of blocks used by the file. This estimation is based on the file size and may return greater than actual block usage when used on files with holes. |
-n |
Produces a list of all files and their owners by running the following pipeline:
ncheck filesystem | sort +On | quot -n filesystem |
Security
Access Control: This command is owned by the bin user and bin group.
Examples
- To display the number of files and bytes owned by each user in the /usr file system, enter:
quot -f /usr
The system displays the following information:
/usr:
63056 3217 bin
20832 390 root
1184 42 uucp
56 5 adm
8 1 guest
8 1 sys
- To display file size statistics, the number of files of each size, and a cumulative total, enter:
quot -c /usr
The system displays the following information:
/usr:
8 103 824
16 2 856
499 0 856
Files
/etc/passwd |
Contains user names. |
/etc/filesystems |
Contains file system names and locations. |
Related Information
The ls command, du command.
[ Next Article |
Previous Article |
Book Contents |
Library Home |
Legal |
Search ]