methyl:
I tried your advice and the results are confusing.
The example directory that I'm using has a link count of four. If I search the same file system for links to this directory's inode I get one result: the directory itself. If I search
/ I get two results: the directory itself and a file in another file system that has absolutely nothing to do with this directory.
What am I missing here; am I misunderstanding link counts?
Could my directory be linked to from another (backup) server?
-----Post Update-----
My Unix admin gave me an idea and further searching of the web confirmed this:
Quote:
...the link count of a directory is 2 + the number of subdirectories in the given directory.
I apologize for the misleading title "Showing a
file's symbolic links."
Based on methyl's method, it appears that this directory has nothing linked to it--which makes sense; I wasn't expecting anything to be. If a directory is linked, the above method should work.