How to tell how much disk space is available on your server

Hard driveIf you are managing a server from the terminal and do not use a control panel. You can take a look at your disk space usage by entering the command:

df -h

The above command will work under different Linux distributions and *BSD operating systems.

The results will show your different filesystems and their sizes. Your amount of disk space used, amount of disk space available, usage percentage, and where your filesystem is mounted will also be shown.

When looking at the output of “df -h” you should look at the line that has the location of where you store your data. The location can vary if you changed it during the installation of the operating system. By default it should be in the home directory (/home). The amount of free space, used space, and total space for this line, under the mount location is what you are probably looking for.