Forrest logo
back to the gdu tool

gdu:tldr:51811

gdu: Interactively show the disk usage of a given directory.
$ gdu ${path-to-directory}
try on your machine

The command "gdu" stands for "GNU Disk Usage". It is a utility program used to determine the disk usage of files and directories on a Linux system.

In this specific command, "${path-to-directory}" is a placeholder for the actual path to a directory on your system that you want to analyze its disk usage. You need to replace "${path-to-directory}" with the actual path to the target directory.

Once you execute the command with the correct directory path, gdu will scan the specified directory and all its subdirectories, calculating the disk space occupied by each file and directory. It will then display the results in a human-readable format, typically showing the sizes in kilobytes (KB) or megabytes (MB), along with the total disk usage of the directory. This can be helpful in identifying which files or directories are consuming the most disk space on your system.

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.
back to the gdu tool