What is du command in Linux? The du command is a standard Linux/Unix command that allows a user to gain disk usage information quickly. It is best applied to specific directories and allows many variations for customizing the output to meet your needs.
Why df and du show different results? du shows the blocks actually allocated to an individual file. df shows the blocks allocated in the entire file system, including inodes and other meta data.
What is df in command line? The df command (short for disk free) is used to show the amount of free disk space available on Linux and other Unix-like systems and to understand the filesystems that have been mounted. df displays the amount of free space on the file system containing each file name argument.
What unit is du in Linux? du computes file space in units of 512 bytes. The actual disk space used by files and directories may be more, since some systems allocate space in units of some multiple of a sector. On UNIX System V, it is usually two sectors; on UNIX Version 7, it is one sector. The allocation unit is file system specific.