Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/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 |
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/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