KIM COMPUTER


df (Disk Free)

The df command stands for Disk Free. It provides a summary of available and used disk space on all mounted file systems. It is the primary tool for checking the overall health of your server's storage.


1. Basic Usage

df [options]

2. Key Options

Option Name Description
-h human-readable Scales sizes into KB, MB, and GB for easier reading.
-T print-type Displays the type of file system (ext4, nfs, etc.).
-i inodes Displays inode usage instead of block usage.
-l local Shows information for local file systems only (excludes network drives).

3. Practical Examples

① Checking overall disk health

df -h

② Identifying partition types

df -hT

③ Checking for Inode exhaustion

df -hi

④ Checking disk space for a specific file

df -h /var/log/syslog

4. [Tip] df vs du summarized