Solved

AIX - Using du command

Posted on 2013-06-03
3
1,030 Views
Last Modified: 2013-06-04
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
Comment
Question by:AIX25
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39218008
du -gs /apps/pro/risk
0
 

Author Comment

by:AIX25
ID: 39218014
I'm guessing it takes a while to run? Also, is there a way run df against a director in a similar manner?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39218055
df is for filesystems, not directories.

And yes, du can take a while.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question