SSH commands to check Hard Drive usage information in Linux Server

Login to your Linux server using SSH Client (ie, PuTTy)

Once you are connected to your server:

Use to following command to check Hard Drive and partitions:

(without the “#”)

# df -h

It will show you output like this:

Filesystem Size Used Avail Use% Mounted on
/dev/simfs 489G 42G 447G 9% /
none 7.8G 4.0K 7.8G 1% /dev
none 7.8G 0 7.8G 0% /dev/shm

The Size is shown in GigaBytes.

If you’d like to see the usage volume of a particular partition (ie, “/home”), use the following command:

(without the “#”)

# du -sh /home/

It will show you the usage in Gigabytes (or in Megabytes if usage is below 1 GB)

If you’d like to view the directory size in a particular partition (ie, “/home”):

(without the “#”)

# du -sh /home/*

The above will show you the size of all the directories in that partition.

Bookmark the permalink.

Leave a Reply

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