What the quot
Monday Mar 24, 2008
One of the joy's of UNIX is that even after 16 years of using it, the opportunity to trip over new useful/interesting commands/features which have been around for a while. Even better if you find something when you are not looking for it.
NAME
quot - summarize file system ownership
SYNOPSIS
quot [-acfhnv] filesystem...
quot -a [-cfhnv]
DESCRIPTION
quot displays the number of blocks (1024 bytes) in the named
filesystem (one or more) currently owned by each user. There
is a limit of 2048 blocks. Files larger than this will be
counted as a 2048 block file, but the total block count will
be correct.
This is the output from a root filesystem on a V890 with Solaris 10. The -v option is interesting in that it gives 3 extra columns of blocks not accessed in 30, 60 and 90 days. Yet to think of a use for the -v, but I am sure we will find one.
# quot -f -v /
/dev/rdsk/c1t0d0s0:
3956446 173808 root 3679449 3491876 3301515
901 73 uucp 503 502 467
133 19 adm 21 21 4
118 115 smmsp 57 4 0
74 5 svctag 3 2 0
48 41 noaccess 47 4 0
28 28 lp 24 23 2
11 3 bin 11 11 11
8 8 daemon 8 4 0
8 16 nobody 8 8 0
8 8 postgres 8 8 0
4 4 gdm 4 4 0
4 4 webservd 4 4 0
3 9 clivek 1 1 1











ufs is dead. Long live zfs.
For Chris's next trick, he will show you how to do...
Well the first thing to point out is that quot, li...