The DF command is used to view the disk usage of the Linux file system, and to see how much space is currently occupied by the disk and how much space is left.
Several of the commonly used commands are
Command 1 DF The default display size is in kilobytes, you can use the parameter-K 1024-byte units,-M 1024*1024 bytes,-I display innode information,-H displays the data in the appropriate units,-H is the same as the-H effect, but-H is in 1000 as a unit,- H is a unit of 1024
File system capacity used Available used% mount point/dev/xvda1 97g 20g 73g 22% /proc 0 0 0 - /procsysfs 0 0 0 - /sysdevpts 0 0 0 - /dev/ptstmpfs 1003M 160K 1003M 1% /dev/shmnone 0 0 0 - /proc/xennone 0 0 0 - /proc/sys/fs/binfmt_miscsunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
Command 2-T Displays the type of disk
File system type 1k-block used available% mount point/dev/xvda1 ext3 101571588 20263980 76064848 22%/tmpfs TMPFS 1026788 1026628 1%/dev/shm
Du is a command that displays the disk usage space for each file and directory
Command 1 Displays the space size of the specified file
Du Heap1.bin 3157280 Heap1.bin
Command 2 Displays the space size of the specified folder
Du TEST/4 test/test18 test/
Command 3 shows only the size of the folder sum
Du-s TEST/8 test/
Command 4 displays each file and calculates the sum
Du-c TEST/4 test/test18 TEST/8 Total
Command 5 where parameter-B is displayed in bytes,-K is displayed in kilobytes,-M is displayed in megabytes,-H is displayed in the most appropriate units, and-H is the most appropriate unit to display in 1000. -A Show all files and folders
Du-ah
Command 6 Displays the space size of all subdirectories in the current directory
Du-h--max-depth=1
Reference Documentation:
Http://www.cnblogs.com/peida/archive/2012/12/07/2806483.html
Http://www.cnblogs.com/peida/archive/2012/12/10/2810755.html
Linux Command--df Command &du command