Linux df Command Disk Directory Management Shows the available disk space on the disk partition.

  

The df command is used to display the available disk space on the disk partition. The default display unit is KB.


Syntax format
df [options]... [FILE]...


parameters
-a or --all: Contains all file systems --block-size=<block size>: Displays the number of blocks in the specified block size -h or --human-readable: displays information in a more readable manner -H or --si: Same as the -h parameter, but in calculations is 1000 Bytes instead of 1024 Bytes-i or --inodes: Display inode information -k or --kilobytes: Specify block size 1024 bytes -l or --local: only the local file system -m or --megabytes: the specified block size is 1048576 bytes --no-sync: Do not execute the sync command before getting the disk usage information. This is the default value; -P or --portability: Use POSIX output format --sync: Execute the sync command -t<file system type> or --type=<file system before getting disk usage information Type >: Display only disk information of the specified file system type -T or --print-type: Display file system type -x<file system type> or --exclude-type=<file system type>: Do not display the designation System type of disk information --help: Display help --version: show the version information


Example

Check your system disk status, displayed in the unit above the KB. The command and result are as follows:
# df -hFilesystem Size Used Avail Capacity iused ifree %iused Mounted on/dev/disk1 112Gi 69Gi 43Gi 62% 18094497 11228765 62% /devfs 187Ki 187Ki 0Bi 100% 646 0 100% /devmap -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /netmap auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home

Copyright © Windows knowledge All Rights Reserved