12 Useful “df” Commands to Check Disk Space in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

40 Responses

  1. Vicky says:

    How can I check the space utilized by me in unix? Also how to check the size of the files by descending order?

  2. shankar says:

    how to check diskspace in particular filesystem or drive

  3. shankar says:

    Thanks for the article, very useful…

  4. nikitha says:

    how to find out the disk space of all servers

  5. james says:

    Why is “df -hT /home” giving me the same exact results as “df -hT /” ?

    “/” should be the root folder and “/home” should be a directory underneath root (“/”) but I am getting the same exact results down to the byte level.

    In any case, decided to use “df -h –type=ext4” so that I can be sure I can see the entire space available to me. The other filesystems are for the system to manage directly (ex: udev, tempfs and none). “none” is referring to /sys/fs/cgroup and a couple of /run/* directories.

    • Ravi Saive says:


      The df command used to display disk usage of File system, not a directory, here /home not a filesystem or partition, that’s the reason its showing / usage..

  6. Pedantic Pete says:

    3 and 7 are duplicates! Only 11 useful commands

    • Adam Plocher says:

      Indeed and #7 is just downright wrong. “Displays in GB”. It displays in whatever unit it deems best, it will show TB or MB too. Even the example they have demonstrating #7 shows two filesystems/mount-points in MB!

  7. Andy Miller says:

    I have a file system that is not a Mount Point and does not show up when “df” is executed….. Is there a command to show the file allocation and utilization for a file system that is allocated space, but, is not configured as a Mount Point?


    • Ravi Saive says:


      In this case you should use du command to find out disk usage of files and directories in Linux..

      • Mohideen Sahib says:

        Hi Ravi,

        According to Andy he said the file system is not on a mount point.

        to access any filesystem it should be mounted right.

        If its only about allocation u can use fdisk or parted if its a physical partition / lvs or lvscan if if its a LVM one.


  8. Sujata Tamang says:

    very useful and well explained “df” commands, Thanks !!

  9. Leo Podstanicky says:

    Very useful, thank you, ones of the most used commands Leo Podstanicky

  10. omuhi says:

    Thank you for the article. I was able to find the size of my home directory using one of the commands.

Got something to say? Join the discussion.

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

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