Paul - The Programmer

simple & stupid

The differences of df and du

  • df:
  1. df gets most of its information from the filesystem's primary superblock.
  2. df calulates the space used by the open files and the inodes.
  3. Check the open file size with "lsof -s <filesystem name> ".
  4. Check the used inode with "df -i".
  • du:
  1. du calculates the exatly size reported by the files on the filesystem. 
  2. du does not count the inodes and the open files.
  3. The block size setting does not effect du's calculation.

df is preciser for the logical used amount of filesystem. As well as du is good at reflecting the use of filesystem from the physical point of view.

We just get married!

Yes! This is true!!!

I like "The Big Bang Theory"

I just like them saying "Because we can!"



-- 元代貢師泰《贈天台李煉師》

problem solved!

full quoted: