• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1844
  • 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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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