Hard Drive Space

The df command will show you overall disk usage. To find out how much space is used in a directory, use du -s. For example, to view the disk usage of your server’s partitions:

$ df -h

To list the size of a specific directory:

$ du -sh /home/

List the size of all the sub-directory sizes under /home:

$ du -sh /home/*
  1. Softlayer Check Hard Drive Usage in Linux
  2. Tech Drivein: Free-up Disk Space