How to check the how much disk space you have left using the command line in Linux

H

How Can We Help?

In the Command Line type in the following command: df -h and press enter.

Results will look similar to the below.

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7              74G   36G   35G  51% /


Explanation of command
:

df = report file system disk space usage
-h = print sizes in human readable format (e.g., 1K 234M 2G)

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me