Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dingnuts
· 1y ago · 0 comments
It does get rid of the duplicate. The duplicate data is deleted and a hard link is created in its place.
Comments
[–]
zippergz
1y ago
It does not make hard links. It makes copy-on-write clones.
[–]
kemayo
1y ago
No, because it's not actually a hard link -- if you modify one of the files they'll diverge.
[–]
8n4vidtmkvmk
1y ago
Sounds like jdupes with -B
[–]
kemayo
1y ago
Cursory googling suggests that it's using the same filesystem feature, yeah.
[–]
mort96
1y ago
Replacing duplicates with hard links would be extremely dangerous. Software which expects to be able to modify file A without modifying previously-identical file B would break.