Below are a few practical ways to check whether two items on Windows really “point to” the same underlying data (hard-link / symbolic-link / junction) or if one is just a shortcut (.lnk) to the other.
Pick whichever toolset you’re most comfortable with.
Quick visual check for shortcuts
If one of the files ends in “.lnk” it’s a shortcut — that’s only a tiny text file that stores a target path:
Right-click ▶ Properties.
On the “Shortcut” tab read the Target.
Compare that target path with the other file’s path.
No admin rights needed; works in any edition of Windows.
Using the Command Prompt (NTFS links)
Open an elevated cmd.exe (Run as administrator) so you can use the fsutil tool.
A. Hard links (ordinary files that share the same MFT record)
cmd
fsutil hardlink list "C:\Path\to\File1.ext"
If File2 shows up in the returned list, both paths are hard-linked to the very same data.
B. Symbolic links & junctions (reparse points)
cmd
fsutil reparsepoint query "C:\Path\to\File1.ext"
• Tag: 0xA000000C ➔ symbolic link
• Tag: 0xA0000003 ➔ junction
• Tag: 0x00000000 ➔ not a reparse point
If the 64-bit File ID (the part after “File ID is”) is identical, the two names are hard links to the same physical file.
Using PowerShell (no extra installs)
PowerShell (v5+ and 7+) has link-aware properties.
powershell
$f1 = Get-Item 'C:\Path\to\File1.ext'
$f2 = Get-Item 'C:\Path\to\File2.ext'
# 1. See if either item itself is a link
$f1.Attributes -match 'ReparsePoint' # True = symlink/junction
$f1.LinkType # HardLink | SymbolicLink | Junction | <null>
$f1.Target # Shows the destination for a link
# 2. Quick test: do they refer to the same underlying file?
(Sysinternals).FileId = (Get-Item $f1).GetHashCode() # Old trick for PS5
# More direct (PS7): [System.IO.File]::ReadAllBytes($f1) etc.
# Simple helper
if (($f1.LinkType -eq 'HardLink') -and
((fsutil hardlink list $f1.FullName) -contains $f2.FullName))
{ 'Yes, the two paths are hard-linked.' }
Tip: Get-ChildItem -Attributes ReparsePoint shows all links in a folder.
GUI helper: Link Shell Extension (free)
If you prefer Explorer-style right-click info:
Install “Link Shell Extension”.
In any folder you’ll see little arrow/chain overlays.
Right-click ▶ “Properties” ▶ “Link Properties” to see the list of hard links or the target of a symlink/junction.
Legacy DIR trick
For a quick glance inside a folder:
cmd
dir /a:l
Files or folders marked
or → symbolic link
→ junction (directory link)
Hard links look like ordinary files (because at the file-system level they are), so use fsutil to spot them.
Mini-cheat sheet
Hard-link : Same inode, counts toward 1 quota. (fsutil hardlink list)
Symbolic link (file): 0-byte stub pointing anywhere. (Tag: 0xA000000C)
Junction (directory): Reparse-point link to a folder.
Shortcut (.lnk) : Regular file parsed by Explorer only.
Troubleshooting gotchas
• fsutil on Win 10/11 requires an elevated prompt.
• Links only exist on NTFS (or ReFS for symlinks); FAT32/exFAT can’t host NTFS links.
• Deduplication, OneDrive cloud placeholders, and SMB shares can complicate results; always test with local files first.
That’s it! Pick the method you like—command-line, PowerShell, or GUI—and you’ll know in seconds whether the two filenames are truly “the same file” or just two separate copies.