diskusagereports icon indicating copy to clipboard operation
diskusagereports copied to clipboard

hard-links

Open joshdaloewen opened this issue 12 years ago • 1 comments

Can this be tweaked to only "count" hard-linked files once. I've got a server with a hard-linking system for backups, and diskusage is reporting that my 20gb drive has 50gb of space in use. Any ideas?

joshdaloewen avatar Oct 10 '12 15:10 joshdaloewen

If you are in a Linux/Unix environment you can use the find command with the -links options. For example:

find . -type d -o type f -links 1

lists the directories or files that have only one link. i.e. exclude files with more than 1 link.

castilloj avatar Jan 25 '13 20:01 castilloj