Linux

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

Written by Ian Carnaghan · 11 sec read >
  • Knowledge Base
  • Linux
  • How to check the how much disk space you have left using the command line in Linux

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)

Last Updated On April 07, 2018
Written by 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. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of