1838365 Members
3299 Online
110125 Solutions
New Discussion

Re: du -k information

 
sheevm
Regular Advisor

du -k information

All,

Can someone advise me how to interpret this

du -k info

6223422 -----Is this 6.2MB?

Thanks
Raji
be good and do good
7 REPLIES 7
Jonathan Fife
Honored Contributor

Re: du -k information

According to the du man page:
-k Gives the block count in 1024-byte blocks.


So 6223422k would be ~6.2GB
Decay is inherent in all compounded things. Strive on with diligence
Peter Nikitka
Honored Contributor

Re: du -k information

Hi,

du -k tells us KB - so its
6223422 KB ~ 6GB

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
sheevm
Regular Advisor

Re: du -k information

There must be something wrong with this "du" commnad what it says in manpages

when I do bdf

/filsystem ----------is 10GB size---used 1.9GB---20%

One of the directory size under this filesysem "du -k" is showing

6223422----This cannot be 6GB

Please comment
be good and do good
Jonathan Fife
Honored Contributor

Re: du -k information

Unless you tell it to with the -x flag, du will include all filesystems underneath the directory you are specifying.

For example, 'du -sk /' will add up all the disk usage for your entire server. 'du -sxk /' will only add up usage for the / filesystem.
Decay is inherent in all compounded things. Strive on with diligence
Hai Nguyen_1
Honored Contributor

Re: du -k information

Raji

You may have another filesystem within this one.

Hai
sheevm
Regular Advisor

Re: du -k information

No I do not have it.

du -skx gives me on/filesystem

1900000.

du -skx on this directory /filesystem/portal

gives

6223422

How is it the directory size is more than the filesystem?
be good and do good
Bill Hassell
Honored Contributor

Re: du -k information

It will make more sense if you display the complete structure (drop the -s):

du -kx /filesystem | sort -rn | head -20

That way, you see the top level, then the largest subdirectory under the top, and so on.


Bill Hassell, sysadmin