Thursday, 7 April 2011

How to find the free space available in your hard disk using command line?

We can easily find the free space in our hard disk using command line. Command line, once we master it, is a lot easier than using Graphical User Interface(GUI), especially in linux. In linux, we have different Desktop Environment(DE) like Gnome,KDE,XFCE,Enlightenment etc which may be using different GUI based programs to find this simple free disk space. It may even change from distro to distro. So if we came from an entirely different linux distro or DE we will have to search for the specific program to view the free disk space. So what is the simplest and universal solution? Yes, it is command line which available in all the linux distros and have the same command to perform a specific task. So let's find out how find the free space using command line.

 Type the following command in your terminal to view the free space.

  • df -h
It will show the  total size of the partition,used hard disk space, free hard disk space and place where it is mounted on. See the below image to get the full picture.



What if you want to view the free  space in a particular folder? Give the path of the file/directory of which you want to find the free space.

  • df -h /home/
This command will give you the free space in the directory /home/



Command line is simple and time saving.;)

7 comments:

  1. Wow ...great info. I hope it will works...Thanks and keep on sharing such information please..
    dropped hard drive

    ReplyDelete
  2. nice post. helpful info!

    ReplyDelete
  3. Disk space can be frees by using a tool whci is diskanalyzerpro. It can free disk space in mac and windows both.

    ReplyDelete
  4. finding free disk space using command line is fine and i liked it

    1tb external hard disk

    ReplyDelete
  5. Hi, you used to write excellent articles, but the last several posts have been kinda boring? I miss your tremendous posts. Past few posts are just a little out of track! MAMR hard-disk paves way for 40TB drives by 2025

    ReplyDelete
  6. This internet site is my breathing in, really good layout and perfect content . Best Brand Hard Disks Online - Buy limited Period Hard Disks‎

    ReplyDelete
  7. Can I just say thats a relief to get a person that truly knows what theyre discussing on the web. You actually understand how to bring a concern to light and produce it important. The diet need to read this and can see this side with the story. I cant believe youre not more well-liked since you undoubtedly contain the gift. Buy 500gb USB 3.0 External Hard Drive

    ReplyDelete