I've found a description of hard links and junctions in Windows, however I'd like to know ,from the Windows UI or command prompt, how I can view the hard links of a particular file or folder?
I've found a description of hard links and junctions in Windows, however I'd like to know ,from the Windows UI or command prompt, how I can view the hard links of a particular file or folder?
The
fsutil
utility included in Windows XP and higher. Example:Sample results (from Windows 7):
fsutil
requires elevated system privileges. If you just need to read, and not create, links this is very inconvenient.Microsoft releases also the free findlinks, which is much more syntax friendly, gives extra-details and does not require special privileges.
Judge yourself the same file, as from John K post, analysed with
findlinks
:EDIT
While the convenience of
findlinks
might persist,See blogs.windows.com/windowsdeveloper
One can also observe that now
fsutil.exe
does not require elevated privileges any more.Microsoft's goal is to align the symlinks functionality to Linux standards, where they are very common.
Thanks to pinjaliina for pointing out this.
Not directly what you need but may still be useful for such goal when used cleverly:
FINDDUPE, a standalone command line utility hosted at http://www.sentex.net/~mwandel/finddupe/ address, has side functionality, which allows listing all hardlinks within a directory recursively with the following call:
finddupe -listlink <directory_of_interest>
Here is an example of what one gets as an output:
NOTE: There is a number of projects with the similar name on SourceForge, but nothing actually hosts the utility above as for now.
The FindLinks tool from Sysinternals should be exactly what you need.
The
ln
CLI utility by Hermann Schinagl should work:There's also a shell extension.
Try the program NTFSLinksView - works fine for me on Windows 10, should work on Vista and later.