Thursday, December 26, 2024
HomeSolarisSolaris system administrationSolaris: Disk Usage of All Users on a Filesystem

Solaris: Disk Usage of All Users on a Filesystem

The quot command provides a quick measure of the disk usage of multiple users on a filesystem.


The quote command must be run as or with the privileges of root. The following is sample output for the quot command:

quot /usr
/dev/rdsk/c0t0d0s3:
851637 root
690088 bin
25828 daemon
16880 #5115
10025 #317
8568 mailsrv
6326 qmchenry
767 uucp
295 adm
202 nobody
46 lp

In this output, the raw device of the filesystem is shown first. The username is provided, if known. The numeric uids 5115 and 317 own files but are unassociated with a username in /etc/passwd as is common when files are untarred from another system.

The -a option can be used in place of the filesystem to check (/usr in that example) and will make quot iterate through all mounted filesystems. The -f option will add a middle column containing the number of files owned by each user.

The quot command could be very useful when a filesystem fills suddenly as it can quickly determine what user to flog or which application has to be checked.

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!