Linux: Disk Space Cheat Sheet

# Show free and used space on mounted filesystems

df -h

# Show free and used inodes on mounted filesystems

df -i

# Shows the file system’s complete disk usage even if the Available field is 0

df -a

# Display disks partitions sizes and types

fdisk -l

# Display disk usage for all files and directories in human readable format

du -ah

# Display total disk usage off the current directory

du -sh

# Shows the disk usage along with each block’s filesystem type (e.g., xfs, ext2, etc.)

df -T

Leave a Reply

Your email address will not be published. Required fields are marked *