Massimo Caliman
by Massimo Caliman
~1 min read

Categories

  • Linux

Tags

  • code
  • en
  • linux
  • sysadmin

The du command shows the disk space used.

Use:

du -s -h .

Where:

-s (--summarize): Display only a total for each argument.

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

.: Indicates the current directory.

Example:

mcaliman@deimos:~# du -s -h .

537M .