config root man

Current Path : /home/tools/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/tools/diskdb.sh

#!/bin/sh
#
# usage: su -l pgsql -c /home/tools/diskdb.sh
#
# size (KB) -- oid -- dbuser
#

    cd /home/pgsql/data/base

    echo "size (KB)  oid = dbuser"

    du -s * |
    while read SIZE OID
    do
        echo "$SIZE    `oid2name -q | awk '{print $1" = "$2}' | grep ^$OID' '`"
    done |
    sort -rn

Man Man