Forrest logo
back to the duf tool

duf:tldr:99f4f

duf: Only show specified devices or mount points.
$ duf ${path-to-directory1 path-to-directory2 ---}
try on your machine

The duf command is a disk usage utility tool that helps you determine the disk space usage of directories and files in a more human-readable format.

The command duf${path-to-directory1} ${path-to-directory2} ---is an example of how to use theduf` command to get disk usage information for multiple directories.

Here's a breakdown of the command:

  • duf: Invokes the duf command.
  • ${path-to-directory1} ${path-to-directory2} ---: Specifies one or more directories for which you want to get disk usage information. You need to replace ${path-to-directory1} and ${path-to-directory2} with the actual paths to the directories you want to check. The --- at the end is used to indicate the end of the list of directories. If you have additional directories, you would add them after the --- separator.

For example, if you want to get disk usage information for the directories /home/user/documents and /home/user/pictures, you would use the command as follows:

duf /home/user/documents /home/user/pictures ---

The output of the command will display the disk usage information for each specified directory in a human-readable format, showing the total size, disk usage percentage, and the number of files and directories within each directory.

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 duf tool