disk usage centos

  Uncategorized

I find this command very useful when searching for large files that have filled up a server –

du -kscxh *

-k     like –block-size=1K

-s, –summarize
display only a total for each argument

-c, –total
produce a grand total

-x, –one-file-system
skip directories on different file systems

-h, –human-readable
print sizes in human readable format (e.g., 1K 234M 2G)

 

LEAVE A COMMENT