Forrest logo
back to the df tool

system:disk:free

Displays the amount of disk space occupied and available on the file system in human-readable format.
$ df -h
try on your machine

The command "df -h" is used to display information about disk space usage on a Linux or Unix system. Here's the breakdown of each component:

  • "df": It stands for "disk free" and is the name of the command. It is used to report file system disk space usage.

  • "-h": It is a command-line option or flag used with "df" to display the disk space usage in a human-readable format. The "-h" option stands for "human-readable." When this option is used, the sizes of files and directories are displayed in a more understandable format with units such as "K" for kilobytes, "M" for megabytes, "G" for gigabytes, etc.

So, when you run the command "df -h" in the terminal, it will list the disk space usage information for all mounted filesystems on your system, showing the sizes in a more readable format.

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:

  • how to get disk size?
  • do i see drive capacity?
  • check if device is mounted?
back to the df tool