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.
RSS Feed
Posted in
Tags: 
