Which language do you prefer? English 简体中文 繁体中文
...

Part of Linux Commands Cheat Sheet

The df command (short for disk free), is used to display information related to file systems about total space and available space.

Displays the space available on all currently mounted file systems


df

Sample output:


Filesystem     1K-blocks     Used Available Use% Mounted on
udev             1905408        4   1905404   1% /dev
tmpfs             387576    10644    376932   3% /run
/dev/vda1       51539404 34048344  15293864  70% /
tmpfs            1937868       24   1937844   1% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            1937868        0   1937868   0% /sys/fs/cgroup
tmpfs             387572        0    387572   0% /run/user/500

Display sizes in human readable format


df -h

Sample output:


Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G  4.0K  1.9G   1% /dev
tmpfs           379M   11M  369M   3% /run
/dev/vda1        50G   33G   15G  70% /
tmpfs           1.9G   24K  1.9G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           379M     0  379M   0% /run/user/500

References

df command in Linux with Examples - GeeksforGeeks

wbswjc-blog