Print Disk Usages in Linux using du Command

“du [options] [directories]

Print disk usage (as the number of 1 KB blocks used by each named directory and its subdirectories; default is the current directory).
Options
-a, –all

Print disk usage for all files, not just subdirectories.

-b, –bytes

Print sizes in bytes.

-c, –total

In addition to normal output, print grand total of all arguments.

-D, –dereference-args

Follow symbolic links, but only if they are command-line arguments.

-h, –human-readable

Print sizes in human-readable format.

-H, –si

Like -h, but show as power of 1000 rather than 1024.

-k, –kilobytes

Print sizes in kilobytes (this is the default).

-l, –count-links

Count the size of all files, whether or not they have already appeared (i.e., via a hard link).”oreilly.com

Share
This entry was posted in Important for LPI 117-101. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>