df

Disk Free. Displays the amount of disk space available on the file system.

Synopsis

df [options] [file]

Core Options

-h

Human readable. Print sizes in powers of 1024 (e.g., 1023M).

-T

Print file system type.

-i

List inode information instead of block usage.

Usage Examples

Human Readable Usage

Show disk usage in GB/MB.

df -h

Specific Directory

Check which filesystem matches the current directory.

df -h .

Show Filesystem Type

See if you are running ext4, xfs, etc.

df -Th
Built for builders.