AIX - Using du command

I have a directory, not a FS, that has millions of files under it: /apps/pro/risk/

I want to know what /apps/pro/risk is using in space by running du -g.

But, when I run the command below...it gives me a detail output of the area.

du -g /apps/pro/risk

Is there a way to just know the total of space used in directory from a top level using du?
AIX25Asked:
Who is Participating?
 
woolmilkporcCommented:
du -gs /apps/pro/risk
0
 
AIX25Author Commented:
I'm guessing it takes a while to run? Also, is there a way run df against a director in a similar manner?
0
 
woolmilkporcCommented:
df is for filesystems, not directories.

And yes, du can take a while.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.