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

or

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 *

or

du -csh *

Posted in Linux SysAdmin and tagged , , , , , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *


*