Linux Disk Usage Commands: Du Vs Df Explained
du reports disk space used by files & dirs, while df shows available disk space on entire filesystem, including mounted drives.
The du and df commands in Linux both deal with disk usage, but they serve different purposes and provide different kinds of information: The du command reports the disk space used by files and directories. It calculates the actual space occupied by files within a specified directory or file path. The df command reports the available disk space on the entire filesystem, including mounted drives. It shows how much space is free, used, and available on the disk partitions, not for specific files or directories. du (Disk Usage) The du command reports the disk space used by files and directories....