ADVERTISEMENT

Linux Commands ❯ df

df

Show information about the file system on which each FILE resides, or all file systems by default.
syntax:

df [OPTION]... [FILE]...
  • df
    display all file systems and their disk usage
  • df -a
    display all file systems including dummy filesystems and their disk usage
  • df -B G
    display all file systems and their disk usage in GigaBytes
  • df -B M
    display all file systems and their disk usage in MegaBytes
  • df -B K
    display all file systems and their disk usage in KiloBytes
  • df -h
    display all file systems and their disk usage in human readable sizes( e.g., 1K 234M 2G)
  • df -H
    display all file systems and their disk usage in human readable sizes, uses the powers of 1000 instead of 1024
  • df -h -T /boot
    display disk usage of boot filesystem
  • df -i
    display all file systems and number of inodes used for each
  • df -T
    display all file systems and their disk usage along with the type of each file system
  • df -t xfs -T
    display disk usage of all the xfs filesystems
  • df -x xfs -T
    display disk usage of all the filesystems excluding xfs