How do I create a disk usage report in Linux?
-
For a disk usage report on the root (/) filesystem, run the following:
# /usr/sbin/repquota / *** Report for user quotas on device /dev/mapper/VolGroup00-LogVol00 Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 3516928 0 0 139607 0 0 daemon -- 20 0 0 3 0 0 lp -- 16 0 0 2 0 0 news -- 7328 0 0 183 0 0 uucp -- 172 0 0 1 0 0 rpm -- 43776 0 0 123 0 0 avahi -- 12 0 0 3 0 0 smmsp -- 12 0 0 2 0 0 rpcuser -- 8 0 0 1 0 0 ntp -- 8 0 0 1 0 0 apache -- 24 0 0 3 0 0 postgres -- 32 0 0 4 0 0 mysql -- 20 0 0 3 0 0 dovecot -- 8 0 0 1 0 0 webalizer -- 32 0 0 4 0 0 squid -- 16 0 0 2 0 0 named -- 56 0 0 7 0 0 xfs -- 0 0 0 1 0 0 -- 84 2048000 2048000 12 0 0
The -- shown after the user name indicate whether the block or inode limits have been exceeded. The first - is for the block limit and the second - is for the inode limit. If either has been exceeded, the - is replaced by a +.
The two grace columns are usually blank. If a soft limit has been exceeded, the grace column shows a time, which is the amount of time remaining on the grace period. In cases where the grace period has expired, then "none" is printed.
© Lightnetics 2024