Linux: Disk Size, Free Space

By Xah Lee. Date: .
df -H
Print disk disk size and free space.

The “-H” is for human readable in metric unit. (k = 10^3, M = 10^6, G = 10^9.)

df -H

Filesystem      Size  Used Avail Use% Mounted on
udev            3.0G     0  3.0G   0% /dev
tmpfs           600M  9.2M  591M   2% /run
/dev/sda5       465G  141G  301G  32% /
tmpfs           3.0G  415M  2.6G  14% /dev/shm
tmpfs           5.3M  4.1k  5.3M   1% /run/lock
tmpfs           3.0G     0  3.0G   0% /sys/fs/cgroup
cgmfs           103k     0  103k   0% /run/cgmanager/fs
tmpfs           600M   41k  600M   1% /run/user/1000

Linux Shell Basics

Directory and Files

Compress, Archive, Download

Text Processing

User, Group, File Perm


Process, Job Control


Linux Desktop