du excluding hard links possible?
Posted
by
balor123
on Super User
See other posts from Super User
or by balor123
Published on 2012-10-24T04:15:01Z
Indexed on
2012/10/24
5:12 UTC
Read the original article
Hit count: 471
du
I'm trying to determine how big a cloned Git repository is from a local file system. It creates hard links for some but not all files. How can I determine the disk usage of it? The best I can come up with is "du -a" right now with the original and again with the clone to determine the difference, since each hard linked file will be counted only once. Ideally, I would just run du on the clone and count each hard linked file zero times.
© Super User or respective owner