codeaprendiz.github.io

DevOps Essentials

View on GitHub

du

NAME

du – display disk usage statistics

SYNOPSIS

du [-H -L -P] [-a -s -d depth] [-c] [-h -k -m -g] [-x] [-I mask] [file …]

DESCRIPTION

The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument.

If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed.

OPTIONS

EXAMPLE

-bash-3.2$ ls | xargs du -sh
[username@hostname ~]$ du -h
96K     admin-scripts
4.0K    claims.dll.xml
6.5G    domains
4.0K    info.txt
4.0K    JMSFilestore-Core
2.1M    JMSFilestore-mis
du -a Certificates/
2224 Certificates//UC-5QGFP1U1.pdf
2216 Certificates//UC-B72CYCVK.pdf
2216 Certificates//UC-SNGUC41Q.pdf
6656 Certificates/