First page Back Continue Last page Overview Graphics
Measuring disk space
df -h <dir>
Returns disk usage and free space for the filesystem containing the given directory.
Similarly, the -h option only exists in GNU df.
Example:
> df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 9.2G 7.1G 1.8G 81% /
df -h
Returns disk space information for all filesystems available in the system. When errors happen, useful to look for full filesystems.