Solaris: disk usage of all users on a filesystem

Home -> UNIX -> Solaris -> System administration

8777 views

From the computer of: qmchenry (339 recipes)
Created: Nov 27, 2005


0 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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

The quote command must be run as or with the privileges of root. Here 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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Solaris: unmounting a filesystem with umount
  Solaris 10: Create multi-terabyte UFS filesystem
  ZFS: Create a basic filesystem or pool using zpool
  ZFS: Create a snapshot of a filesystem
  Boot Solaris from CD-ROM to solve problems
  Solaris: fuser to find users or processes making filesystem umount fail
  Solaris: Mount filesystem with UFS logging enabled
  Reconfiguration boot in Solaris
  ZFS: Create a new filesystem from an existing pool
  ZFS: List or view filesystems

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.