Forrest logo
back to the du tool

du:ai:69bba

Show me the folder size of each subfolder in a directory
$ du -h --max-depth=1 ${directory}
try on your machine

Show the size of each subfolder in the specified directory, with human-readable output and limited to the first level of subdirectories

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • Show me the folder size of each subfolder in a directory?
back to the du tool