Usage And Variation

  1. du -a Shows disk usage of all files and directories in a given location.
  2. du -h Presents memory information in a human readable format.
  3. du -s Presents grand total of memory used in a directory.

What is the DU command?

The Disk Usage command shows the sizes of main directories and their subdirectories, and can show the size of individual files. This is useful for finding directories and files that consume too much space. Entering the command without arguments will show the total disk usage in the current directory. Arguments for this command can be an absolute file or directory location to find specific disk use information.



In the example above, the user looks to find the usage of the /tmp directory. Each of the files has a given number assigned to it that represents the memory taken up by the file. At the bottom is the total memory taken up by the directory in its entirety.

Try it: