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:

你永远不能战胜一个纯S<>B,因为他会把你的智商拉到跟他个水平,然后用丰富的经验打败你,这句话解释了一个困扰我很长时间的问题…..=.=