Linux Tricks - 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. To find out free space available in your hard disk you need to use the df command. It shows the amount of disk space available on the currently mounted file system. df is used to show or find out following information:

-> Used and available space.
-> File system mount points.
-> File system capacity.
-> Find of whether there is sufficient space to upgrade or install new apps.

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.












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 !!



Comments

Popular Posts