How is df so fast?

How is df so fast?
Answer
4 Answers. df
just tells you the total free space on a filesystem. The filesystem can know this instantly, by simple bookkeeping. du on the other hand actually traverses a directory and calculates the total size of its contents.
 

Tìm kiếm

Back
Top