Check Free Disk Space In CentOS and Linux

Both Linux and Unix offer commands to check free disk space.

Check disk usage and free disk space

df -h


df -k


View how much space one or more files or directories is using

du -sh

-s option summarize the space a directory is using and -h option provides “Human-readable” output


Examples of these commands being used and the outputs:

Linux df command







To display the size of files in a given directory:

du -sh *


du -csh *