To check free disk space on Linux system, we can use df command as below. Note that, this command is executed on Amazon EC2 environment.
Examples – Check free disk space on Linux
df -k
[[email protected] ~]$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 8256952 6972096 1200984 86% / tmpfs 3559608 0 3559608 0% /dev/shm |
df -h
[[email protected] ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 6.7G 1.2G 86% / tmpfs 3.4G 0 3.4G 0% /dev/shm |