Solved

AIX - Using du command

Posted on 2013-06-03
3
901 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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 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