• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2085
  • Last Modified:

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?
0
AIX25
Asked:
AIX25
  • 2
1 Solution
 
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.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now