문제

In Linux, you could run the below on a directory to find the size of each sub-directory:

du -sh *

When you're in asmcmdin the +FRA disk group for example, how can I retrieve the size of each directory in the disk group in one list, instead of running du +FRA/directory on each and every single directory?

도움이 되었습니까?

해결책

du of asmcmd doesn't support this, just put it in a loop.

$ dg=fra; for dir in $(asmcmd ls $dg); do echo $dg/$dir; asmcmd du $dg/$dir; done
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top