💻 Software
Finding all symbolic and hard links to a file on UNIX
Fresh7 days ago
Mar 15, 202610504 viewsConfidence Score0%
0%
Problem
If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Finding all symbolic and hard links to a file on UNIX
Low Risk
Try this with GNU : Example output: You could use instead of but it will show the inode and other information of the target file instead of the individual files.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix