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

  • 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)

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.