system:disk:free
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.
Questions that are answered by this command:
- how to get disk size?
- do i see drive capacity?
- check if device is mounted?