Directory Disk Space in Linux

Running Linux distribution Centos 4.6, I need to check the disk space available in a directory. For this, I use the command df, which reports the file system disk space usage.

df
This command returns the file system, the mount directory, total disk space, used disk space, and available disk space (in 1-K blocks) based on currently mounted directories.

df -h
This command returns the file system, the mount directory, total disk space, used disk space, and available disk space (in MB and GB blocks) based on currently mounted directories.

df /to/directory
This command returns the file system, the mount directory, total disk space, used disk space, and available disk space (in 1-K blocks) based the stated /to/directory.

df /to/directory -h
This command returns the file system, the mount directory, total disk space, used disk space, and available disk space (in MB and GB blocks) based the stated /to/directory.

Share and Enjoy:
  • Digg
  • DotNetKicks
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • MySpace
  • Netvibes
  • Reddit
  • StumbleUpon
You can leave a response, or trackback from your own site.

Leave a Reply