The df command is used to show the amount of disk space that is free on file systems.
Mount level space information:
df or df -k
This default action is to display used and free file space in blocks. In this particular case, the block size is 1024 bytes as is indicated in the output.
The first column show the name of the disk partition. Subsequent columns show total space, blocks allocated and blocks available. The capacity column indicates the amount used as a percentage of total file system capacity.
The final column show the mount point of the file system. This is the directory where the file system is mounted within the file system tree. Note that the root partition will always show a mount point of /. Other file systems can be mounted in any directory of a previously mounted file system.
If you want to check the space details for a mount, cd to that location and issue the command df . or df -k .
df -i: This option instructs df to display information about inodes rather that file blocks.
File level space information:
du command tells you how much space each folder in the current folder occupies
This command comes with many options. Try `du --help' for more information.
No comments:
Post a Comment